From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Newbie Visibility Problem TEXT_IO.INTEGER_IO
Date: Thu, 03 Jun 2004 10:32:44 +0200
Date: 2004-06-03T10:32:44+02:00 [thread overview]
Message-ID: <9976390.uAm05SS4m1@linux1.krischik.com> (raw)
In-Reply-To: 40BE4911.7040608@yahoo.ca
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
--
mailto://krischik@users.sourceforge.net
http://www.ada.krischik.com
next prev parent reply other threads:[~2004-06-03 8:32 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 [this message]
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