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!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed.mathworks.com!news.tele.dk!news.tele.dk!small.news.tele.dk!feed.cgocable.net!cyclone01.bloor.is.net.cable.rogers.com!news04.bloor.is.net.cable.rogers.com.POSTED!12dc6cf53ab2750!not-for-mail Message-ID: <40BE4911.7040608@yahoo.ca> 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: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 02 Jun 2004 21:39:07 GMT NNTP-Posting-Host: 69.193.110.79 X-Complaints-To: abuse@rogers.com X-Trace: news04.bloor.is.net.cable.rogers.com 1086212347 69.193.110.79 (Wed, 02 Jun 2004 17:39:07 EDT) NNTP-Posting-Date: Wed, 02 Jun 2004 17:39:07 EDT Xref: g2news1.google.com comp.lang.ada:1037 Date: 2004-06-02T21:39:07+00:00 List-Id: 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: > Well, no, that use makes the contents of text_io visible, not the > thing itself. 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<>" <"bm34mailing<>"@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; > >