From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: what is current status of OpenGL and Ada?
Date: Tue, 07 Feb 2012 05:23:45 +0100
Date: 2012-02-07T05:23:45+01:00 [thread overview]
Message-ID: <op.v9ajtvpzule2fv@douda-yannick> (raw)
In-Reply-To: jgpv1u$1a5$1@dont-email.me
Le Tue, 07 Feb 2012 02:33:49 +0100, BrianG <me@null.email> a écrit:
> (I occasionally return to my attempt to build a binding, based on the
> 'Red Book', but it doesn't hold enough interest for me to keep at it
> very long. I did learn that you can't use a single name for all
> versions of a function - because then you can't call it with all literal
> parameters {there's no way to resolve the short/long or float/double
> versions}. At a minimum, you need 2 names; I prefer to use the 2nd for
> the literal case, but never came up with a reasonable naming convention.)
Or else four packages with static genericity.
package OpenGL.With_Shorts is
function F1 (Param1 : Short, ...);
function F2 (Param1 : Short)
function F2 return Short;
...
end ...;
package OpenGL.With_Longs is
function F1 (Param1 : Long, ...);
function F2 (Param1 : Long)
function F2 return Long;
...
end ...;
And so on.
--
“Syntactic sugar causes cancer of the semi-colons.” [1]
“Structured Programming supports the law of the excluded muddle.” [1]
[1]: Epigrams on Programming — Alan J. — P. Yale University
next prev parent reply other threads:[~2012-02-07 4:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-05 6:52 what is current status of OpenGL and Ada? Nasser M. Abbasi
2012-02-05 7:03 ` Nasser M. Abbasi
2012-02-05 12:00 ` Yannick Duchêne (Hibou57)
2012-02-05 12:34 ` Nasser M. Abbasi
2012-02-05 16:21 ` Erich
2012-02-06 7:48 ` Gautier write-only
2012-02-07 1:33 ` BrianG
2012-02-07 4:14 ` Nasser M. Abbasi
2012-02-07 11:44 ` Gautier write-only
2012-02-07 4:18 ` Niklas Holsti
2012-02-07 4:23 ` Yannick Duchêne (Hibou57) [this message]
2012-02-07 23:00 ` BrianG
2012-02-06 2:24 ` Yannick Duchêne (Hibou57)
2014-09-12 23:34 ` fastrgv
2014-09-13 7:49 ` Simon Wright
2014-09-14 12:12 ` darkestkhan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox