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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8f802583e5c84fa X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!newsfeed.pacific.net.au!nasal.pacific.net.au!not-for-mail Newsgroups: comp.lang.ada Subject: Re: String filtering From: David Trudgett Organization: Very little? References: <433bf44d$0$26212$9b4e6d93@newsread2.arcor-online.net> Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:8zyY1j+GFymvrWzC/gwtAagfzPg= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 03 Oct 2005 08:40:04 +1000 NNTP-Posting-Host: 61.8.46.246 X-Complaints-To: news@pacific.net.au X-Trace: nasal.pacific.net.au 1128293084 61.8.46.246 (Mon, 03 Oct 2005 08:44:44 EST) NNTP-Posting-Date: Mon, 03 Oct 2005 08:44:44 EST Xref: g2news1.google.com comp.lang.ada:5345 Date: 2005-10-03T08:40:04+10:00 List-Id: Martin Dowie writes: > David Trudgett wrote: >> if New_Str'Last > 0 then > > Why do you do this test? If New_Str'Range = (1 .. 0) then loop simply > won't be 'run' and you should still be returning "". Hi Martin, Where do I say "New_Str'Range" in my loop? :-) Therein lies the answer to your question. Cheers, David -- David Trudgett http://www.zeta.org.au/~wpower/ Our lives begin to end the day we become silent about things that matter. -- Martin Luther King