From: Pascal Obry <pascal@obry.net>
To: bubble <kuan_long@hotmail.com>
Subject: Re: pragma import ambiguity
Date: Wed, 06 Sep 2006 19:47:44 +0200
Date: 2006-09-06T19:47:49+02:00 [thread overview]
Message-ID: <44FF09C0.5050505@obry.net> (raw)
In-Reply-To: <1157560770.358187.249610@i3g2000cwc.googlegroups.com>
bubble a écrit :
> are you mean there are the same name symbols in a library?
...
I think you got this wrong. The OP problem is that Clear is a procedure
and also a value of the enumerated type logicopenm.
I think the program is ok. A pragma import takes a local_name and this
can't be an enumeration_literal_specification. So the clear in the
pragma import is not ambigus as it can only apply to the procedure Clear.
Now it is said in RM 3.5.1(11):
<<
When called, the parameterless function associated with an enumeration
literal returns the corresponding
value of the enumeration type.
>>
But I don't think this implicit function should be taken into account here.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
next prev parent reply other threads:[~2006-09-06 17:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-06 16:05 pragma import ambiguity tmoran
2006-09-06 16:39 ` bubble
2006-09-06 16:42 ` bubble
2006-09-06 17:47 ` Pascal Obry [this message]
2006-09-21 1:26 ` Dave Thompson
2006-09-06 17:34 ` Frank J. Lhota
2006-09-06 18:06 ` Gautier
2006-09-07 7:53 ` Dmitry A. Kazakov
2006-09-07 19:35 ` Adam Beneschan
2006-09-08 3:48 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox