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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no 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-7-bit Received: by 10.68.59.229 with SMTP id c5mr8951996pbr.6.1322161568788; Thu, 24 Nov 2011 11:06:08 -0800 (PST) MIME-Version: 1.0 Path: lh20ni13731pbb.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: Why constant components are not permitted ? Date: Thu, 24 Nov 2011 19:06:04 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <1856c00b-1994-406a-bbb3-73d93785099a@i6g2000vbe.googlegroups.com> Reply-To: anon@anon.org NNTP-Posting-Host: aY5Dnvopw7URTg1qI2nIVQ.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: IBM NewsReader/2 2.0 Xref: news2.google.com comp.lang.ada:14609 Date: 2011-11-24T19:06:04+00:00 List-Id: type test is record a : integer := 16#FFFF# ; b : string ( 1 .. 4 ) := "this" ; -- is OK c : string := "is" ; -- error because no define boundary end record ; Reason no one ask the ARG. In <1856c00b-1994-406a-bbb3-73d93785099a@i6g2000vbe.googlegroups.com>, David Sauvage writes: >Hello, > >given the following : > >type Object is record > Tag : constant String := "key"; -- GNAT compilation failed : >constant components are not permitted >end record; > >In my case I find it useful to declare my Object Tag component as a >constant, but it is not permitted, I would be interested to learn >why ? > > >Cheers, >