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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ea0955083361ce29 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-22 10:57:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.freenet.de!not-for-mail From: see@messagebody.com (Jan) Newsgroups: comp.lang.ada Subject: Re: unconstrained records Date: Sun, 22 Dec 2002 18:54:43 GMT Message-ID: <3e0608b6.2790531@news.freenet.de> References: <3e05aebf.3122500@news.freenet.de> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 213.7.189.205 X-Trace: 1040583358 news.freenet.de 8297 213.7.189.205:1211 X-Complaints-To: abuse@freenet.de Xref: archiver1.google.com comp.lang.ada:32203 Date: 2002-12-22T18:54:43+00:00 List-Id: On Sun, 22 Dec 2002 13:52:54 GMT, "SteveD" wrote: >Are you looking at an on-line version of the book? No, printed version. >Your answer is present in chapter 3 section 6 on-line. > http://www.cs.kuleuven.ac.be/~dirk/ada-belgium/aia/ch_3_6a.html I will take a look. > >The short answer is your sample code does not work. Oh, you are right, I didn't test it, because I just don't need this feature (yet). So when I write the following code (this one works), the string in "name" will ALWAYS occupy 15 bytes? subtype Max_Index is Natural range 0 .. 15; type Test (length : natural := 0) is record text : string (1..length); end record; name : Test; Thanks! P.S. It's no homework, just a hobby.