The Right Approach to Exceptions
H. S. Teoh
hsteoh at quickfur.ath.cx
Sat Feb 18 14:03:27 PST 2012
On Sat, Feb 18, 2012 at 10:38:06PM +0100, Alex Rønne Petersen wrote:
> On 18-02-2012 22:30, Timon Gehr wrote:
> >On 02/18/2012 10:25 PM, Alex Rønne Petersen wrote:
> >>
> >>I'd just like to add to this that we don't lose anything per se by
> >>introducing specific exception types. People can still catch Exception
> >>if they really, really want.
> >>
> >
> >We gain executable bloat. I don't know how how significant the amount
> >would be.
>
> For a single class that has nothing but a constructor? Negligible IMHO.
[...]
Especially a ctor that does nothing but forwards arguments to the base
class. It will just be inlined 100% of the time.
T
--
Любишь кататься - люби и саночки возить.
More information about the Digitalmars-d
mailing list