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: a07f3367d7,16f39b4f57339dcb X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!d27g2000yqn.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Constant as anonymous functions : the outer space beast is back Date: Tue, 2 Feb 2010 13:47:52 -0800 (PST) Organization: http://groups.google.com Message-ID: <9da1a9ba-09e7-46a2-9a85-6016e106c34a@d27g2000yqn.googlegroups.com> References: <3c43bf9d-75f1-4d09-9388-65b83cafb1d9@j14g2000yqm.googlegroups.com> <18159050-6ea0-4bc8-ab62-329fab270f0e@e19g2000prn.googlegroups.com> NNTP-Posting-Host: 77.198.58.180 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1265147272 19897 127.0.0.1 (2 Feb 2010 21:47:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 2 Feb 2010 21:47:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d27g2000yqn.googlegroups.com; posting-host=77.198.58.180; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8863 Date: 2010-02-02T13:47:52-08:00 List-Id: On 2 f=E9v, 22:26, Adam Beneschan wrote: > Some problems like that could be mitigated by defining overloading > only for constants declared with an that contains > the word "constant". =A0I.e. *not* for loop variables, IN parameters, > exception occurrence variables in handlers, .............. =A0Actually, > I suspect that that's the kind of constant the OP was thinking of, not > everything that the language defines as having a constant view. > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0-- Ada= m If I'm the OP you were referring to, yes, I was meaning the constants declared with the keyword Constant, not everything which have a constant view. ..... what's an OP ? ... please Later words : to be honest, although it would be conceptually cleaner, this tiny lack is not as much a pain. There is the function workaround which is just a bit more text lines to write. The reason why I've introduced this topic, is because of the side two effects which comes with it : required body for specifications which would not requires a body otherwise and body elaboration required to access the full specification. I did not meet, my self, any trouble with it, I was just anticipating based on logical assumptions (I know in some circumstance, elaboration order may be an issue, as well as may be the existence of a body which some requirements may exclude).