From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9625531bdb853f2a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.73.229 with SMTP id o5mr12858796pbv.7.1328588631037; Mon, 06 Feb 2012 20:23:51 -0800 (PST) Path: lh20ni269195pbb.0!nntp.google.com!news2.google.com!goblin1!goblin3!goblin.stu.neva.ru!gegeweb.org!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: what is current status of OpenGL and Ada? Date: Tue, 07 Feb 2012 05:23:45 +0100 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: eGGE2euDXtk6rV6+/hKXsg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.61 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-02-07T05:23:45+01:00 List-Id: Le Tue, 07 Feb 2012 02:33:49 +0100, BrianG a =C3=A9crit:= > (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 liter= al = > 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 fo= r = > the literal case, but never came up with a reasonable naming conventio= n.) 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. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity