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,9fb18b5057796461,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-24 14:55:48 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!petbe.visi.com!ash.uu.net!xyzzy!nntp From: "Justin Schaub" Subject: Procedure Overloading X-Nntp-Posting-Host: e123572.sw.nos.boeing.com Message-ID: X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Priority: 3 X-Msmail-Priority: Normal Sender: nntp@news.boeing.com (Boeing NNTP News Access) Organization: The Boeing Company X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 Date: Thu, 24 Jul 2003 20:49:45 GMT Xref: archiver1.google.com comp.lang.ada:40779 Date: 2003-07-24T20:49:45+00:00 List-Id: Is there a way to specify which overloaded procedure is called in the following example? package A type Access_Integer is access Integer; procedure compute( Num : access Integer); procedure compute(Num : Access_Integer); end A; procedure Test is B : Access_Integer; begin compute(B); end Test; The GNAT compiler allows compilation of the package A, but when compiling the procedure B it says that there is an ambiguous reference to the overloaded compute function. I have heard that you could simply do compute (Access_Integer'(B)); but that didn't work either. Any ideas? I know it's a silly example but we are importing the ADA GLU bindings that have a similar issue. Justin