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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.183.10.133 with SMTP id ea5mr14928436obd.24.1405979990891; Mon, 21 Jul 2014 14:59:50 -0700 (PDT) X-Received: by 10.50.79.230 with SMTP id m6mr143798igx.6.1405979990733; Mon, 21 Jul 2014 14:59:50 -0700 (PDT) Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!h18no2982018igc.0!news-out.google.com!eg1ni1igc.0!nntp.google.com!h18no5258765igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 21 Jul 2014 14:59:50 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <6Wfzv.69883$DV4.21297@fx05.iad> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9c6a51dd-b436-47f7-842f-ad44c90d5004@googlegroups.com> Subject: Re: Functions vs constants From: Adam Beneschan Injection-Date: Mon, 21 Jul 2014 21:59:50 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.dca.giganews.com comp.lang.ada:187761 Date: 2014-07-21T14:59:50-07:00 List-Id: On Monday, July 21, 2014 2:52:14 PM UTC-7, Victor Porton wrote: > Enumeration literals are technically not constants, are them? They are functions. See RM 3.5.1(6). However, they are considered "static= functions" and can thus appear in some places where static values are expe= cted. (Saying it's a "static value" is stronger than saying it's a constan= t; a static value is a constant but it's also one that the compiler can fig= ure out when compiling.) -- Adam