Boost logo

Boost :

From: Victor A. Wagner, Jr. (vawjr_at_[hidden])
Date: 2002-09-23 14:45:32


At Monday 2002/09/23 05:18, you wrote:
>From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
> > At Monday 2002/09/23 04:47, you wrote:
> > >From: "Victor A. Wagner, Jr." <vawjr_at_[hidden]>
> > > > I understand, but it's a lot faster to do a "switch" on an int, than
>on a
> > > > const char* (another thing left out of the language)
> > >
> > >Why would you do a "switch" on an exception's error code?
> >
> > as was pointed out earlier in this thread, a single class of exception may
> > have multiple reasons to be thrown, and the ability to discriminate may be
> > important.
>
>If the ability to discriminate is important to the caller, using a single
>class is a design error.

then I guess there is a design error in the filesystem library. Someone
has claimed a need to discriminate between two reasons for an exception.

>_______________________________________________
>Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Victor A. Wagner Jr. http://rudbek.com
PGP RSA fingerprint = 4D20 EBF6 0101 B069 3817 8DBF C846 E47A
PGP D-H fingerprint = 98BC 65E3 1A19 43EC 3908 65B9 F755 E6F4 63BB 9D93
The five most dangerous words in the English language:
               "There oughta be a law"


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk