From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Basic questions about wordings in “Interfacing Pragmas”
Date: Wed, 23 Nov 2011 05:28:47 +0100
Date: 2011-11-23T05:28:47+01:00 [thread overview]
Message-ID: <op.v5dtd9hsule2fv@douda-yannick> (raw)
In-Reply-To: 32ebf2db-e697-41e3-ac12-9673b9467c0b@s6g2000vbc.googlegroups.com
Le Tue, 22 Nov 2011 20:10:01 +0100, AdaMagica
<christ-usch.grein@t-online.de> a écrit:
> On 22 Nov., 19:15, Yannick Duchêne (Hibou57)
> <yannick_duch...@yahoo.fr> 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 => 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 access
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… a whole tagged type record (oops). I wish I
did not get a warning, but an error instead. It seems access to subprogram
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.
--
“Syntactic sugar causes cancer of the semi-colons.” [Epigrams on
Programming — Alan J. — P. Yale University]
“Structured Programming supports the law of the excluded muddle.” [Idem]
next prev parent reply other threads:[~2011-11-23 4:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-22 18:15 Basic questions about wordings in “Interfacing Pragmas” Yannick Duchêne (Hibou57)
2011-11-22 18:18 ` Yannick Duchêne (Hibou57)
2011-11-22 19:10 ` AdaMagica
2011-11-23 4:28 ` Yannick Duchêne (Hibou57) [this message]
2011-11-22 20:07 ` Adam Beneschan
2011-11-23 4:39 ` Yannick Duchêne (Hibou57)
2011-11-23 6:05 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox