comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Please clear my doubt about variant record type
Date: Mon, 15 May 2006 14:23:30 +0200
Date: 2006-05-15T14:22:47+02:00	[thread overview]
Message-ID: <44687297$0$11075$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <1147686792.273900.278760@j55g2000cwa.googlegroups.com>

Sathish Veluswamy wrote:
> Hi..
> 
> Can you please tell me at what time does the memory is allocated for an
> variant record type. whether the memory is allocated at the time of
> compilation or during run-time..??

Depends.

type T(toggle: BOOLEAN) is record
   ...
end record;

Then

function foo(m: BOOLEAN) return INTEGER is
   x: T(m);
begin
   ...
end;

The compiler will not know, in general, which variant
of T to choose for x, at compile time?





  reply	other threads:[~2006-05-15 12:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15  9:53 Please clear my doubt about variant record type Sathish Veluswamy
2006-05-15 12:23 ` Georg Bauhaus [this message]
2006-05-15 18:31 ` Jeffrey R. Carter
replies disabled

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