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 02:00:16 PST Path: archiver1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!tar-meneldur.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Overloading procedures with Float and Long_Float types Date: Mon, 08 Mar 2004 11:10:45 +0100 Message-ID: References: NNTP-Posting-Host: tar-meneldur.cbb-automation.de (212.79.194.119) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1078740014 64288248 I 212.79.194.119 ([77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:6135 Date: 2004-03-08T11:10:45+01:00 List-Id: On Mon, 08 Mar 2004 09:06:00 +0000, "Luke A. Guest" wrote: >On Mon, 08 Mar 2004 08:20:19 +0000, Preben Randhol wrote: > >> On 2004-03-08, Luke A. Guest wrote: >>> On Mon, 08 Mar 2004 03:49:03 +0000, James Rogers wrote: >>> >>>> This appears to be a problem with your version. The version 3.15P >>>> has no problems with this code. >>>> >>>> Jim Rogers >>> >>> Sorry, but it doesn't, this is the output of my installed 3.15p version >>> which is the same as my 5.02w version: >>> >>> example.adb:228:19: ambiguous expression (cannot resolve "Translate") >> ^^^^^^^^^^^^^^^^^^^^^^^^^^ > >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. -- Regards, Dmitry Kazakov www.dmitry-kazakov.de