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: 103376,c9e3d58bccd981dd X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Path: g2news1.google.com!postnews.google.com!c21g2000yqk.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Re: Defaults for formal subprogram Date: Wed, 28 Apr 2010 03:31:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9ac3f3db-819c-4232-b580-30a67411dd70@c21g2000yqk.googlegroups.com> References: <629d4f19-6d99-4c4e-bffa-2a2b287410eb@u34g2000yqu.googlegroups.com> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1272450714 11229 127.0.0.1 (28 Apr 2010 10:31:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 28 Apr 2010 10:31:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c21g2000yqk.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:10251 Date: 2010-04-28T03:31:53-07:00 List-Id: > procedure Aaa is > > =A0 =A0type Proc_Ptr is access procedure; > > =A0 =A0X : Proc_Ptr; > > =A0 =A0generic > =A0 =A0 =A0 with procedure Bbb is X.all; > =A0 =A0 =A0 -- aaa.adb:8:31: expect valid subprogram name as default > =A0 =A0package Pkg is > =A0 =A0end Pkg; AARM 12.6(5.b) The evaluation of the default_name takes place during the elaboration of each instantiation that uses the default, as defined in 12.3, =93Generic Instantiation=94. So I don't see a problem.