comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier <gautier@fakeaddress.nil>
Subject: Re: pragma import ambiguity
Date: Wed, 06 Sep 2006 20:06:28 +0200
Date: 2006-09-06T20:06:28+02:00	[thread overview]
Message-ID: <44ff0e12$1_6@news.bluewin.ch> (raw)
In-Reply-To: <JGDLg.2382$O5.1258@llslave.llan.ll.mit.edu>

Frank J. Lhota:

 > My advice would be to give the enumeration literal and the
 > procedure separate names.

And when not possible, the workaround is (marked *):

procedure testimp is
   type logicopenm is ( clear, gl_and);
   procedure clear(mask:integer);
   procedure glClear(mask:integer);
   procedure clear(mask:integer) renames glClear; -- *
   pragma import(stdcall,glClear,"glclear");      -- *
begin
   null;
end testimp;
______________________________________________________________
Gautier         -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm

NB: For a direct answer, e-mail address on the Web site!



  reply	other threads:[~2006-09-06 18:06 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
2006-09-21  1:26   ` Dave Thompson
2006-09-06 17:34 ` Frank J. Lhota
2006-09-06 18:06   ` Gautier [this message]
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