From: "bm34mailing<<SPAM-SUCKS>>" <"bm34mailing<<SPAM-SUCKS>>"@yahoo.ca>
Subject: Re: Newbie Visibility Problem TEXT_IO.INTEGER_IO
Date: Wed, 02 Jun 2004 21:39:07 GMT
Date: 2004-06-02T21:39:07+00:00 [thread overview]
Message-ID: <40BE4911.7040608@yahoo.ca> (raw)
In-Reply-To: <x7v7juppwqx.fsf@smaug.pushface.org>
Hi Simon:
Thanks for the response. I tried to use your suggestion, but I still
could not build the app. However, I considered your thought on visibility:
<snip>
> Well, no, that use makes the contents of text_io visible, not the
> thing itself.
<snip>
I added the lines:
with Ada;
use Ada;
to make the contents of Ada (i.e Text_IO) visible. This works as I
expected. This does not seem like the best way to resolve the problem,
but I am less than two days into learning about Ada, so I will reserve
final judgment until my understanding of the syntax improves.
Thanks again for the help Simon. I appreciate the quick response.
Bill
"
Simon Wright wrote:
> "bm34mailing<<SPAM-SUCKS>>" <"bm34mailing<<SPAM-SUCKS>>"@yahoo.ca> writes:
>
>
>>with Ada.Text_IO;
>>use Ada.Text_Io;
>>
>>so I believe Text_io should be visible.
>
>
> Well, no, that use makes the contents of text_io visible, not the
> thing itself.
>
> You could try just "use Ada;" or the following .. (I haven't tried it,
> too much grief retyping :-)
>
> 0007 with ADA.TEXT_IO;
> 0008 use ADA.TEXT_IO; <<<<<<<<< remove this line
> 0009
> 0010 procedure MostUltimateAnswer is
> 0011
> package Text_IO renames Ada.Text_IO;
>
> 0012 package IntIo is new TEXT_IO.INTEGER_IO( INTEGER );
> 0013 use IntIO;
>
>
next prev parent reply other threads:[~2004-06-02 21:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-02 19:37 Newbie Visibility Problem TEXT_IO.INTEGER_IO bm34mailing<<SPAM-SUCKS>>
2004-06-02 19:48 ` Simon Wright
2004-06-02 21:39 ` bm34mailing<<SPAM-SUCKS>> [this message]
2004-06-03 8:32 ` Martin Krischik
2004-06-03 14:47 ` bm34mailing<<SPAM-SUCKS>>
2004-06-03 7:16 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox