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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,d67ca8d922a33c8a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-01 19:13:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.alt.net!wn51feed!worldnet.att.net!attbi_s54.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: Heterogenous array X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 24.20.111.157 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s54 1078197193 24.20.111.157 (Tue, 02 Mar 2004 03:13:13 GMT) NNTP-Posting-Date: Tue, 02 Mar 2004 03:13:13 GMT Organization: Comcast Online Date: Tue, 02 Mar 2004 03:13:13 GMT Xref: archiver1.google.com comp.lang.ada:6001 Date: 2004-03-02T03:13:13+00:00 List-Id: The way I look at it, the default descriminant is a way of telling the compiler you may want to assign a record with a different discriminant value to a record you have declared. That way enough memory is allocated to hold the largest variant. If you don't give a default descriminant, that tells the compiler you're going to explicitly select the variant for each record you declare, so it can size each variant in the smallest allocation - with the restriction that you cannot assign a different variant after the declaration. I hope this helps, Steve (The Duck) "Bj�rn Persson" wrote in message news:JoO0c.84716$dP1.234457@newsc.telia.net... Thank you, Steve and Robert! I'm afraid I still don't understand why Parameter_Wrapper would be necessary, since Steve's solution seems to work equally well - at least in Gnat 3.3.2. On the other hand I don't understand why a default value for the discriminant would make such a difference - but it does. -- Bj�rn Persson jor ers @sv ge. b n_p son eri nu