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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,99c3f341deeb2ba1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!u30g2000prd.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: Overload of functions in a task stack Date: Mon, 3 May 2010 16:53:32 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <3d6d6fdc-83a5-41c1-b297-dace3051ff3b@o14g2000yqb.googlegroups.com> NNTP-Posting-Host: 149.32.224.33 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1272930812 29337 127.0.0.1 (3 May 2010 23:53:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 3 May 2010 23:53:32 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: u30g2000prd.googlegroups.com; posting-host=149.32.224.33; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11307 Date: 2010-05-03T16:53:32-07:00 List-Id: On May 3, 10:57=A0am, Pablo wrote: > Hi, > I have a function called Answer defined in several packages (each one > is different according to the own package), and each function Answer > is called by a permanent task every cycle. The issue is that when I > compile some packages, the compiler bugs me informing "warning: > declaration of "Answer" hides one at (...)". So, is there a way to > define these overload functions in a "secure" way that I do not need > to use pragma Warnings (OFF) to avoid these warnings? > Thanks I believe use Clause of more than one package containing function Answer is involved. The simple fix is to replace use Clause with full qualification. Anh Vo