comp.lang.ada
 help / color / mirror / Atom feed
* Overloading procedures with Float and Long_Float types
@ 2004-03-08  0:17 Luke A. Guest
  2004-03-08  3:49 ` James Rogers
  2004-03-08 12:46 ` David C. Hoos
  0 siblings, 2 replies; 30+ messages in thread
From: Luke A. Guest @ 2004-03-08  0:17 UTC (permalink / raw)


Hi,

Is there a safe way to do this? I'm playing with the adaopengl bindings
and have created the following:

subtype GLfloat is Float;
subtype GLdouble is Standard.Long_Float;

procedure Vertex(X, Y, Z : in GLdouble);
procedure Vertex(X, Y, Z : in GLfloat);

But the compiler (GNAT - Gentoo's 5.02w version) throws up ambiguity
problems.

Is there a nice way to have these two procedures co-exist without having to
rename them? I have currently renamed them, but this does defeat the whole
purpose of this experiment.

Thanks,
Luke.




^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2004-03-09  9:24 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-08  0:17 Overloading procedures with Float and Long_Float types Luke A. Guest
2004-03-08  3:49 ` James Rogers
2004-03-08  8:16   ` Luke A. Guest
2004-03-08  8:20     ` Preben Randhol
2004-03-08  9:06       ` Luke A. Guest
2004-03-08 10:10         ` Dmitry A. Kazakov
2004-03-08 14:05           ` Luke Guest
2004-03-08 14:07             ` Preben Randhol
2004-03-08 15:10               ` Luke Guest
2004-03-08 16:20                 ` Preben Randhol
2004-03-08 16:28                   ` Luke Guest
2004-03-08 17:58                     ` Preben Randhol
2004-03-09  8:55                       ` Dmitry A. Kazakov
2004-03-08 16:50                   ` Hyman Rosen
2004-03-08 16:55                     ` Luke Guest
2004-03-08 17:32                       ` Hyman Rosen
2004-03-08 14:37             ` Dmitry A. Kazakov
2004-03-08 15:18               ` Luke Guest
2004-03-08 19:52                 ` Gautier Write-only
2004-03-08 20:34                   ` Luke A. Guest
2004-03-09  8:40                 ` Dmitry A. Kazakov
2004-03-08 12:46 ` David C. Hoos
2004-03-08 14:03   ` Luke Guest
2004-03-08 14:54     ` Georg Bauhaus
2004-03-08 15:19       ` Luke Guest
2004-03-08 16:04     ` David C. Hoos
2004-03-08 16:17       ` Luke Guest
2004-03-09  9:24         ` Dmitry A. Kazakov
2004-03-08 19:58       ` Gautier Write-only
     [not found]     ` <1faf01c40527$0a364a10$b101a8c0@sy.com>
2004-03-08 16:21       ` Preben Randhol

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox