From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ac426c319fea6535 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Mon, 15 May 2006 14:23:30 +0200 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Thunderbird 1.5.0.2 (X11/20060420) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Please clear my doubt about variant record type References: <1147686792.273900.278760@j55g2000cwa.googlegroups.com> In-Reply-To: <1147686792.273900.278760@j55g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <44687297$0$11075$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Date: 15 May 2006 14:22:47 MEST NNTP-Posting-Host: 2105a16b.newsread4.arcor-online.net X-Trace: DXC=Nk>mL`m3WRk_Pi]:Sm<]\d:ejgIfPPlddjW\KbG]kaMh]kI_X=5KeafYH[4:=P9Ihe`Bh@Z?dZ]MOide X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:4264 Date: 2006-05-15T14:22:47+02:00 List-Id: 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?