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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9862c21fee63f95c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-11 03:42:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!freenix!enst.fr!not-for-mail From: And838N@netscape.net Newsgroups: comp.lang.ada Subject: Visibility and Elaboration Date: Wed, 11 Jun 2003 06:40:55 -0400 Organization: ENST, France Message-ID: NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: avanie.enst.fr 1055328095 6462 137.194.161.2 (11 Jun 2003 10:41:35 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 11 Jun 2003 10:41:35 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: Atlas Mailer 2.0 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:38967 Date: 2003-06-11T06:40:55-04:00 David, Ohhhhhhhhhhhhh... Your talking about: procedure x is astring: unbounded_string := "hello world"; somenumber: integer := 0; begin somenumber := count(astring, to_set(' ')); put(somenumber); end x; When I am talking about: procedure visibilitytest is astring: string := "hello world"; somenumber: integer; begin put_line(astring); somenumber := count(to_unbounded_string(astring), to_set(' ')); put_line(Integer'image(somenumber)); end visibilitytest; After I posted procedure x I added put_line(astring) instead of put (somenumber) and reposted it. I looked it up later and found procedure visibility test but not procedure x. Anyway... You have my sincere and public appologies for being rude and, with procedure x, I would not need ada.text_io. Andrew __________________________________________________________________ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455