comp.lang.ada
 help / color / mirror / Atom feed
From: "bm34mailing<<SPAM-SUCKS>>" <"bm34mailing<<SPAM-SUCKS>>"@yahoo.ca>
Subject: Re: Newbie Visibility Problem TEXT_IO.INTEGER_IO
Date: Thu, 03 Jun 2004 14:47:32 GMT
Date: 2004-06-03T14:47:32+00:00	[thread overview]
Message-ID: <8SGvc.338657$0qd.186221@twister01.bloor.is.net.cable.rogers.com> (raw)
In-Reply-To: <9976390.uAm05SS4m1@linux1.krischik.com>

Thanks to all for the help with this problem. Martin, Dimtry and Dennis 
all made good points that I will remember going forward.

Thanks again to Simon for the original answer.

Bill

Martin Krischik wrote:

> bm34mailing wrote:
> 
> 
>>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.
> 
> 
> For a beginner the best option is not to use "use" at all. OK, you have to
> type a lot more but understanding will be better.
> 
> Later, when you have the understanding use "use" selective. "with" need to
> be placed before package - "use" does not:
> 
> with Ada.Text_IO;
> 
> package ...
> 
>   procedure ...
>   is
>      use Ada.Text_IO;
>   begin
>   end ...;
> 
> end ...;
> 
> is just as vaild. And the reason why there are two of them.
> 
> With Regards
> 
> Martin



  reply	other threads:[~2004-06-03 14:47 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>>
2004-06-03  8:32     ` Martin Krischik
2004-06-03 14:47       ` bm34mailing<<SPAM-SUCKS>> [this message]
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