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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-07 16:17:34 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news-out.visi.com!petbe.visi.com!news.octanews.net!proxad.net!newsfeed.icl.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Overloading procedures with Float and Long_Float types Date: Mon, 08 Mar 2004 00:17:33 +0000 Message-ID: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1078705053 13463 62.49.62.197 (8 Mar 2004 00:17:33 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Mon, 8 Mar 2004 00:17:33 +0000 (UTC) User-Agent: Pan/0.14.0 (I'm Being Nibbled to Death by Cats!) Xref: archiver1.google.com comp.lang.ada:6126 Date: 2004-03-08T00:17:33+00:00 List-Id: 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. Thanks, Luke.