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: a07f3367d7,4cad17e8664256c9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!kanaga.switch.ch!switch.ch!news.in2p3.fr!in2p3.fr!not-for-mail From: xavier grave Newsgroups: comp.lang.ada Subject: Re: Allocation questions Date: Thu, 28 May 2009 13:55:07 +0200 Organization: In2p3 Message-ID: References: <4a1e5d9e$0$2868$ba620e4c@news.skynet.be> NNTP-Posting-Host: ipnnarval.in2p3.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ccpntc8.in2p3.fr 1243511707 14971 134.158.92.7 (28 May 2009 11:55:07 GMT) X-Complaints-To: newsmaster@cc.in2p3.fr NNTP-Posting-Date: Thu, 28 May 2009 11:55:07 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) In-Reply-To: X-Enigmail-Version: 0.95.0 Xref: g2news2.google.com comp.lang.ada:6066 Date: 2009-05-28T13:55:07+02:00 List-Id: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Or you could use a discriminant: > > type Samples (No_Of_Samples : Natural := 0) is > record > S : array (1 .. No_Of_Samples) of Sample; > end record; > My two cents about variant discriminant : IMHO one should avoid to declare No_Of_Samples as Natural and with a default value, because as far as I remember some compilers will book for S (1 .. Natural'Last) of Sample which can be a lot... May be some compiler guru can confirm or infirm this ? xavier -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkoee5sACgkQVIZi0A5BZF6aJQCeKvvUfImZxi0hBfrOevIJddTB qJMAnRfDe03mMlNL/XHUayFVTHFdv9WV =xdXN -----END PGP SIGNATURE-----