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 06:05:34 PST From: "Luke Guest" Newsgroups: comp.lang.ada References: Subject: Re: Overloading procedures with Float and Long_Float types Date: Mon, 8 Mar 2004 14:05:27 -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: <404c7e53.0@entanet> X-Trace: 8 Mar 2004 14:08:19 GMT, 195.74.122.227 Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!c03.atl99!news.usenetserver.com!newsfeed.yul.equant.net!newsfeed.uk.prserv.net!prserv.net!news.freedom2surf.net!entanet!195.74.122.227 Xref: archiver1.google.com comp.lang.ada:6139 Date: 2004-03-08T14:05:27+00:00 List-Id: > >Translate is another st of overloaded functions with the same signature as > >Vertex; > > > > procedure Translate(X, Y, Z : in GLdouble); > > procedure Translate(X, Y, Z : in GLfloat); > > > >It's just that I've 3 Translate calls and about 40 Vertex calls in my test > >program. > > This is only possible if you are using literals: > > Translate (1.0, 1.0, 1.0); -- This is ambiguous > > The compiler does not knwo which kind of Float you mean. > > Translate (GLfloat (1.0), 1.0, 1.0); -- This is OK > > Now the compiler has a hint. It seems that Outlook Express crap, didn't send my last reply *sigh* It's a shame that you would have to type GLfloat(1.0) to give the compiler a hint, is there some float notation that can differentitate bewteen FLoat's and Long_Float's? Basically, it just seems to be wasting a good opportunity for overloading here. Thanks, Luke.