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 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!o28g2000yqh.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Constant as anonymous functions : the outer space beast is back Date: Sat, 30 Jan 2010 00:45:11 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <3c43bf9d-75f1-4d09-9388-65b83cafb1d9@j14g2000yqm.googlegroups.com> NNTP-Posting-Host: 91.13.241.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1264841112 2971 127.0.0.1 (30 Jan 2010 08:45:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 30 Jan 2010 08:45:12 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o28g2000yqh.googlegroups.com; posting-host=91.13.241.8; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8841 Date: 2010-01-30T00:45:11-08:00 List-Id: > package P is > =A0 =A0 Count : constant Float :=3D 10; > end P; And even if you make Count a function (overloadable), this example code is still illegal in Ada as is - and that's a good thing. package P is function Count return Float; end P;