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,74dad3573c51736a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.59.229 with SMTP id c5mr2647511pbr.6.1322022529437; Tue, 22 Nov 2011 20:28:49 -0800 (PST) Path: lh20ni7727pbb.0!nntp.google.com!news1.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: =?utf-8?B?QmFzaWMgcXVlc3Rpb25zIGFib3V0IHdvcmRpbmdzIGluIOKAnEludGVyZmE=?= =?utf-8?B?Y2luZyBQcmFnbWFz4oCd?= Date: Wed, 23 Nov 2011 05:28:47 +0100 Organization: Ada @ Home Message-ID: References: <32ebf2db-e697-41e3-ac12-9673b9467c0b@s6g2000vbc.googlegroups.com> NNTP-Posting-Host: wgHBtatYse3YjKAUQsirEA.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: news1.google.com comp.lang.ada:19058 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2011-11-23T05:28:47+01:00 List-Id: Le Tue, 22 Nov 2011 20:10:01 +0100, AdaMagica = a =C3=A9crit: > On 22 Nov., 19:15, Yannick Duch=C3=AAne (Hibou57) > wrote: >> > 9.1/1 For pragmas Import and Export, the argument for Link_Name = >> shallnot >> > be given without the pragma_argument_identifier unlessthe argument = for >> > External_Name is given. >> >> What is that pragma_argument_identifier ? The Convention ? > > pragma Pragma_Name (pragma_argument_identifier =3D> Value, ...); OK, it refers to 2.8. Still feel the wording could be more readable here= . >> Why no similar wording for imported subprograms ? Was just forget or = is >> this missing on purpose ? (or I missed it?) > > Don't understand. This is a rule for a type T and not for subprograms.= It's not about type, its about signature: imported subprogram has a = convention too, and it should have the same legality requirement as acce= ss = to subprogram has on the signature. Later after a silly error in a text, I get a compiler warning about an = imported C function returning=E2=80=A6 a whole tagged type record (oops)= . I wish I = did not get a warning, but an error instead. It seems access to subprogr= am = with a Convention have this requirement, I would expect the same for a = imported subprogram with the same Convention too. That's why I had a feeling something is missing. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [Ep= igrams on = Programming =E2=80=94 Alan J. =E2=80=94 P. Yale University] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [Idem]