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,b30ef5c12f872cb8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.36.6 with SMTP id m6mr9071592pbj.4.1322164602735; Thu, 24 Nov 2011 11:56:42 -0800 (PST) Path: lh20ni13857pbb.0!nntp.google.com!news1.google.com!postnews.google.com!w1g2000vba.googlegroups.com!not-for-mail From: David Sauvage Newsgroups: comp.lang.ada Subject: Re: Why constant components are not permitted ? Date: Thu, 24 Nov 2011 11:49:09 -0800 (PST) Organization: http://groups.google.com Message-ID: <9dac0cd0-2142-4e2c-b049-3e76a1dcea2c@w1g2000vba.googlegroups.com> References: <1856c00b-1994-406a-bbb3-73d93785099a@i6g2000vbe.googlegroups.com> NNTP-Posting-Host: 41.136.235.175 Mime-Version: 1.0 X-Trace: posting.google.com 1322164602 29922 127.0.0.1 (24 Nov 2011 19:56:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Nov 2011 19:56:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w1g2000vba.googlegroups.com; posting-host=41.136.235.175; posting-account=RLLoCgoAAAAlrjFze52eMRxLw8Zw6JGC User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Xref: news1.google.com comp.lang.ada:19125 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-11-24T11:49:09-08:00 List-Id: On 24 nov, 23:06, a...@att.net wrote: > =A0 type test is record > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0a : integer :=3D 16#FFFF# ; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0b : string ( 1 .. 4 ) :=3D "this" ; --= is OK > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0c : string :=3D "is" ; -- error becaus= e no define boundary > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0end record ; > > Reason no one ask the ARG. ok, but the following is also not permitted type Object is record Tag : constant Positive :=3D 42; -- GNAT compilation failed : constant components are not permitted end record; There is something special about constant components, no related to unconstrained types in record. Cheers