comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Representation clause of a discriminated record
Date: Thu, 4 Aug 2016 16:23:54 -0500
Date: 2016-08-04T16:23:54-05:00	[thread overview]
Message-ID: <no0bp2$hhh$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: c3625d1a-62a5-4507-9c37-1baa81c74f61@googlegroups.com

"David SAUVAGE" <david.sauvage@adalabs.com> wrote in message 
news:c3625d1a-62a5-4507-9c37-1baa81c74f61@googlegroups.com...
> >On Wednesday, August 3, 2016 at 7:23:02 PM UTC+4, Per Sandberg wrote:
>>> Den 2016-08-03 kl. 08:13, skrev Jeffrey R. Carter:
>
>
> Thanks all for your feedbacks, my wish is about adding A in the 
> representation clause

You can't do that, the size of items in representation clauses have to be 
static (that is, known at compile-time). It doesn't make sense to specify 
the location of something of unknown properties.

Note that by giving all of the other components, you effectively place the A 
component in a particular location (the one left over). But I'd suggest 
using some sort of static data structure.

                              Randy.



      reply	other threads:[~2016-08-04 21:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03  5:04 Representation clause of a discriminated record David SAUVAGE
2016-08-03  6:13 ` Jeffrey R. Carter
2016-08-03 15:22   ` Per Sandberg
2016-08-03 16:43     ` david.sauvage
2016-08-03 16:46     ` David SAUVAGE
2016-08-04 21:23       ` Randy Brukardt [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox