The Right Approach to Exceptions

Andrei Alexandrescu SeeWebsiteForEmail at
Mon Feb 20 18:36:57 PST 2012

On 2/20/12 7:09 PM, Piotr Szturmaj wrote:
> Andrei Alexandrescu wrote:
>> On 2/20/12 4:25 PM, Jonathan M Davis wrote:
>>> I definitely think that we should favor putting data in member
>>> variables, not
>>> in a hashtable of Variants.
> +1
>> Whenever you put data in member variables you set yourself up for code
>> bloat. Do you agree?
> It's a problem of classes as a whole, not just exceptions. I'm afraid
> such 'pressure' will limit the use of classes in Phobos.

The problem is solved by pushing interface up, i.e. defining good 
methods in the base classes.


More information about the Digitalmars-d mailing list