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:03:05 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:03:03 -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: <404c7dbf.0@entanet> X-Trace: 8 Mar 2004 14:05:51 GMT, 195.74.122.227 Path: archiver1.google.com!news2.google.com!fu-berlin.de!stargate.gts.cz!news.freedom2surf.net!entanet!195.74.122.227 Xref: archiver1.google.com comp.lang.ada:6138 Date: 2004-03-08T14:03:03+00:00 List-Id: > What is the result of this procedure? There are no out or "in out" > parameters. I would expect something like this to either be a It doesn't need them, this is OpenGL! Translate calls an imported glTranslate[fd] procedure depending on the parameter types. > As a matter of good practice, I would not use the type "Float", > but would explicitly make the two subtypes Short_Float and > Long_Float. Would this allow the compiler to determine whichprocedure to call based purely on numbers? Translate(1.0, 0.0, 0.0); -- Is this Short_Float or Long_Float? Luke.