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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32e5f5710e731d24 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Newbie Visibility Problem TEXT_IO.INTEGER_IO Date: Thu, 03 Jun 2004 10:32:44 +0200 Organization: AdaCL Message-ID: <9976390.uAm05SS4m1@linux1.krischik.com> References: <40BE4911.7040608@yahoo.ca> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1086252801 01 8089 wuA9GCblXOVeMtk 040603 08:53:21 X-Complaints-To: usenet-abuse@t-online.de X-ID: r4dfWYZOYeBCfp74H46knCe3g7m7G2qCThKN27v0fJsF8liOoCTH4b User-Agent: KNode/0.7.7 Xref: g2news1.google.com comp.lang.ada:1058 Date: 2004-06-03T10:32:44+02:00 List-Id: 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