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!news.glorb.com!dedekind.zen.co.uk!zen.net.uk!demorgan.zen.co.uk!194.72.9.35.MISMATCH!news-peer1!btnet-feed3!news-peer0-test!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: Martin Dowie Newsgroups: comp.lang.ada Subject: Re: String filtering Date: Mon, 3 Oct 2005 05:56:10 +0000 (UTC) Organization: BT Openworld Message-ID: References: <433bf44d$0$26212$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Host: host86-131-222-95.range86-131.btcentralplus.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com 1128318970 4917 86.131.222.95 (3 Oct 2005 05:56:10 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Mon, 3 Oct 2005 05:56:10 +0000 (UTC) In-Reply-To: X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) Xref: g2news1.google.com comp.lang.ada:5347 Date: 2005-10-03T05:56:10+00:00 List-Id: David Trudgett wrote: > 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. Sorry! I think I saw what I expected not what was there! ;-) Cheers -- Martin