From: "Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net>
Subject: Re: visibility
Date: Thu, 05 Jun 2003 15:19:01 GMT
Date: 2003-06-05T15:19:01+00:00 [thread overview]
Message-ID: <FbJDa.36464$ca5.30009@nwrdny02.gnilink.net> (raw)
In-Reply-To: mailman.9.1054764760.11750.comp.lang.ada@ada.eu.org
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.
next prev parent reply other threads:[~2003-06-05 15:19 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-04 22:12 visibility And838N
2003-06-05 10:35 ` visibility Preben Randhol
2003-06-05 15:19 ` Frank J. Lhota [this message]
[not found] <009C830A.36D4A463.0015D3EC@netscape.net>
2003-06-07 12:18 ` Visibility David C. Hoos, Sr.
2003-06-08 3:28 ` Visibility Hyman Rosen
2003-06-08 10:20 ` Visibility Frank J. Lhota
2003-06-08 16:18 ` Visibility Robert I. Eachus
-- strict thread matches above, loose matches on Subject: below --
2003-06-07 8:21 Visibility And838N
2003-06-07 17:29 ` Visibility Jeffrey Carter
2003-06-06 5:15 Visibility christoph.grein
[not found] <666191F6.00B406DF.0015D3EC@netscape.net>
2003-06-05 15:16 ` visibility David C. Hoos
1992-12-24 11:48 Visibility agate!spool.mu.edu!darwin.sura.net!Sirius.dfn.de!chx400!sicsun!disuns2!lg
1992-12-24 2:16 Visibility Richard Pattis
1992-12-23 23:35 Visibility agate!spool.mu.edu!uwm.edu!cs.utexas.edu!torn!nott!netfs!news
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox