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,c4bd2a19251049b1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!goblin2!goblin1!goblin.stu.neva.ru!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: best practice: error handling Date: Tue, 31 May 2011 13:35:22 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <0b95a2a1-6e3d-4ad1-a832-e3099a9bce37@v8g2000yqb.googlegroups.com> <1ulcworf418ai$.iy0mm08iuusy.dlg@40tude.net> NNTP-Posting-Host: 70a07413dcd3b813e963719ce1c51025 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 74029f4af03dc7af9a4163ed0e34bb3f X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <1ulcworf418ai$.iy0mm08iuusy.dlg@40tude.net> X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=74029f4af03dc7af9a4163ed0e34bb3f X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:20572 Date: 2011-05-31T13:35:22-07:00 List-Id: On 05/31/2011 01:02 PM, Dmitry A. Kazakov wrote: > > Again, the point is valid, but the example is not good. Zero index is as > good as Index_Result. In both cases an attempt to use the index will cause > an exception. So both return an "invalid index." Hardly. Some valid and fairly common uses include getting the part of Source before or after Pattern, both of which can succeed with an invalid result with an index of zero. -- Jeff Carter "Clear? Why, a 4-yr-old child could understand this report. Run out and find me a 4-yr-old child. I can't make head or tail out of it." Duck Soup 94