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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8d5151b6052512f7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-07 19:49:03 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!green.octanews.net!news-out.octanews.net!news.glorb.com!border1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Overloading procedures with Float and Long_Float types From: James Rogers References: Message-ID: User-Agent: Xnews/5.04.25 Date: Mon, 08 Mar 2004 03:49:03 GMT NNTP-Posting-Host: 12.73.180.105 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1078717743 12.73.180.105 (Mon, 08 Mar 2004 03:49:03 GMT) NNTP-Posting-Date: Mon, 08 Mar 2004 03:49:03 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:6128 Date: 2004-03-08T03:49:03+00:00 List-Id: "Luke A. Guest" wrote in news:pan.2004.03.08.00.17.32.527941@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon. co.uk: > Hi, > > Is there a safe way to do this? I'm playing with the adaopengl > bindings and have created the following: > > subtype GLfloat is Float; > subtype GLdouble is Standard.Long_Float; > > procedure Vertex(X, Y, Z : in GLdouble); > procedure Vertex(X, Y, Z : in GLfloat); > > But the compiler (GNAT - Gentoo's 5.02w version) throws up ambiguity > problems. > > Is there a nice way to have these two procedures co-exist without > having to rename them? I have currently renamed them, but this does > defeat the whole purpose of this experiment. This appears to be a problem with your version. The version 3.15P has no problems with this code. Jim Rogers