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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,773d871a0236828d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-05 08:19:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!newsfeed.news2me.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!nwrdny02.gnilink.net.POSTED!53ab2750!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: Subject: Re: visibility X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Thu, 05 Jun 2003 15:19:01 GMT NNTP-Posting-Host: 151.203.234.174 X-Complaints-To: abuse@verizon.net X-Trace: nwrdny02.gnilink.net 1054826341 151.203.234.174 (Thu, 05 Jun 2003 11:19:01 EDT) NNTP-Posting-Date: Thu, 05 Jun 2003 11:19:01 EDT Xref: archiver1.google.com comp.lang.ada:38684 Date: 2003-06-05T15:19:01+00:00 List-Id: First of all, the Count entity in the Ada.Strings.Unbounded is a function, not a procedure. There can be name conflicts between type names and function names, because an Ada type conversion uses the function notation. For example, if we have X : Ada.Text_Io.Count; Y : Some_Numeric_Type_Other_Than_Count; then the was you would convert Y for assignment to X is X := Ada.Text_Io.Count( Y ); This is probably the source of the compiler's confusion. The solution is obvious: qualify this occurence of Count so that the compiler, as well as the humans reading your code, will know which Count you are referring to.