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,FREEMAIL_FROM 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,UTF8 Received: by 10.68.0.170 with SMTP id 10mr10950693pbf.2.1322215047179; Fri, 25 Nov 2011 01:57:27 -0800 (PST) Path: lh20ni16027pbb.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Why constant components are not permitted ? Date: Fri, 25 Nov 2011 10:57:25 +0100 Organization: Ada @ Home Message-ID: References: <1856c00b-1994-406a-bbb3-73d93785099a@i6g2000vbe.googlegroups.com> <15v7a1mpu8fuw.d0wd83q0gcow.dlg@40tude.net> NNTP-Posting-Host: IQsgShqvlwBVRETOGaH4CQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.60 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news2.google.com comp.lang.ada:14639 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2011-11-25T10:57:25+01:00 List-Id: Le Fri, 25 Nov 2011 10:12:54 +0100, Dmitry A. Kazakov = a =C3=A9crit: > On Thu, 24 Nov 2011 10:14:34 -0800 (PST), David Sauvage wrote: > >> 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 ? > > Language irregularity. There are other things which work for component= s > differently, e.g. no anonymous arrays. You could argue it's an irregularity, if this was useful to anything. = Another one could argue Ada did not blindly apply any schema to anything= . = A record is not a general purpose declaration scope; there are mainly = packages and generic packages for that purpose. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: [Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univer= sity]