comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: best practice: error handling
Date: Tue, 31 May 2011 23:40:50 +0200
Date: 2011-05-31T23:40:50+02:00	[thread overview]
Message-ID: <1lkqiegcopy14.xdaiapub2p5g.dlg@40tude.net> (raw)
In-Reply-To: is3m18$pt9$1@tornado.tornevall.net

On Tue, 31 May 2011 13:35:22 -0700, Jeffrey Carter wrote:

> 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.

A good point. Agreed.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2011-05-31 21:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-31 14:01 best practice: error handling milouz
2011-05-31 17:13 ` Vinzent Hoefler
2011-05-31 17:57   ` AdaMagica
2011-06-11 13:38   ` Yannick Duchêne (Hibou57)
2011-05-31 18:08 ` Jeffrey Carter
2011-05-31 20:02   ` Dmitry A. Kazakov
2011-05-31 20:35     ` Jeffrey Carter
2011-05-31 21:40       ` Dmitry A. Kazakov [this message]
2011-06-11 13:57     ` Yannick Duchêne (Hibou57)
2011-06-11 14:07       ` Dmitry A. Kazakov
2011-06-12  5:19         ` Randy Brukardt
2011-06-11 13:48   ` Yannick Duchêne (Hibou57)
2011-06-11 13:31 ` Yannick Duchêne (Hibou57)
2011-06-11 16:12   ` Simon Wright
2011-06-11 16:26   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox