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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP 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!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!c03.atl99!c01.usenetserver.com!news.usenetserver.com!cyclone01.bloor.is.net.cable.rogers.com!twister01.bloor.is.net.cable.rogers.com.POSTED!12dc6cf53ab2750!not-for-mail From: "bm34mailing<>" <"bm34mailing<>"@yahoo.ca> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Newbie Visibility Problem TEXT_IO.INTEGER_IO References: <40BE4911.7040608@yahoo.ca> <9976390.uAm05SS4m1@linux1.krischik.com> In-Reply-To: <9976390.uAm05SS4m1@linux1.krischik.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <8SGvc.338657$0qd.186221@twister01.bloor.is.net.cable.rogers.com> Date: Thu, 03 Jun 2004 14:47:32 GMT NNTP-Posting-Host: 69.193.110.79 X-Complaints-To: abuse@rogers.com X-Trace: twister01.bloor.is.net.cable.rogers.com 1086274052 69.193.110.79 (Thu, 03 Jun 2004 10:47:32 EDT) NNTP-Posting-Date: Thu, 03 Jun 2004 10:47:32 EDT Xref: g2news1.google.com comp.lang.ada:1070 Date: 2004-06-03T14:47:32+00:00 List-Id: 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