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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8d5151b6052512f7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-08 09:10:01 PST From: "Luke Guest" Newsgroups: comp.lang.ada References: <404c7e53.0@entanet><404c8da0.0@entanet> Subject: Re: Overloading procedures with Float and Long_Float types Date: Mon, 8 Mar 2004 16:28:52 -0000 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 195.74.122.227 Message-ID: <404c9f47.0@entanet> X-Trace: 8 Mar 2004 16:28:55 GMT, 195.74.122.227 Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!priapus.visi.com!orange.octanews.net!news-out.visi.com!petbe.visi.com!news.octanews.net!ash.uu.net!newsfeed2.us.prserv.net!newsfeed.uk.prserv.net!prserv.net!news.freedom2surf.net!entanet!195.74.122.227 Xref: archiver1.google.com comp.lang.ada:6157 Date: 2004-03-08T16:28:52+00:00 List-Id: "Preben Randhol" wrote in message news:mailman.77.1078762820.327.comp.lang.ada@ada-france.org... > Luke Guest wrote on 08/03/2004 (16:25) : > > If I only provide one, the Long_Float/GLdouble variant, I'll either have to > > cast it down to GLfloat and use the fast function or use the slower > > function. Not an option. It's designed that way for a reason. > > And the reason is? How does this work in C/C++ that doesn't even have Not my bindings, the original C API of OpenGL. > types... It works, (again) by using distinct names. > I think the design is flawed. > > Either it should be: > > Translate_Double ( ); > > or > > Double.Translate ( ); So, you would have GL.Double.Translate()? Hmmm.