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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA 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.39.100 with SMTP id o4mr10517219pbk.0.1322204165666; Thu, 24 Nov 2011 22:56:05 -0800 (PST) Path: lh20ni15558pbb.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Why constant components are not permitted ? Date: Fri, 25 Nov 2011 07:56:03 +0100 Organization: Tidorum Ltd Message-ID: <9j8sg4FfjuU1@mid.individual.net> References: <1856c00b-1994-406a-bbb3-73d93785099a@i6g2000vbe.googlegroups.com> Mime-Version: 1.0 X-Trace: individual.net ALimIw4tneLhdeb9Mpf0JAE9vK+0EQsBiXsf5TNVw8ucrIqNRG Cancel-Lock: sha1:YCulfA7aRNJETugBBqC2fTqHYvw= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <1856c00b-1994-406a-bbb3-73d93785099a@i6g2000vbe.googlegroups.com> Xref: news2.google.com comp.lang.ada:14624 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-11-25T07:56:03+01:00 List-Id: On 11-11-24 19:14 , David Sauvage wrote: > 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 ? It seems no earlier responder has understood why you want to have a constant component, nor do I, so I'll ask directly: Why do you think a constant component would be useful? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .