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-Thread: 103376,9869a3929132e322 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 06 Sep 2006 20:06:28 +0200 From: Gautier User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: pragma import ambiguity References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.62.188.198 X-Original-NNTP-Posting-Host: 81.62.188.198 Message-ID: <44ff0e12$1_6@news.bluewin.ch> X-Trace: news.bluewin.ch 1157565970 81.62.188.198 (6 Sep 2006 20:06:10 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:6484 Date: 2006-09-06T20:06:28+02:00 List-Id: Frank J. Lhota: > My advice would be to give the enumeration literal and the > procedure separate names. And when not possible, the workaround is (marked *): procedure testimp is type logicopenm is ( clear, gl_and); procedure clear(mask:integer); procedure glClear(mask:integer); procedure clear(mask:integer) renames glClear; -- * pragma import(stdcall,glClear,"glclear"); -- * begin null; end testimp; ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!