The Right Approach to Exceptions
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sun Feb 19 06:46:37 PST 2012
On 2/19/12 8:44 AM, Alex Rønne Petersen wrote:
> On 19-02-2012 15:41, Andrei Alexandrescu wrote:
>> That helps. This quite nicely illustrates that types don't necessarily
>> need to proliferate. Something not much more constraining can be done
>> today:
>>
>> try {
>> ...
>> } catch(IOException e)
>> {
>> if (e.errno !in subsetYouWantToHandle) throw e;
>> ...
>> }
>>
>>
>> Andrei
>
> As I pointed out on the pull request, this is *evil*. It resets the
> stack trace.
I understand, that's a good point. Could the matter be considered an
implementation issue?
Andrei
More information about the Digitalmars-d
mailing list