Feature request: clone a class (similar to typedef)
Daniel Keep
daniel.keep.lists at gmail.com
Fri Sep 21 18:05:38 PDT 2007
BCS wrote:
> Robert Fraser wrote:
>>
>> I've _never_ run into this situation, and I doubt it's a common one.
>> Certainly too limited, IMO, for a language feature.
>>
>
> I run into it all the time when I want to create a new Exception type.
>
> I practically have "class NewExp:Exception{this(char[]c){super(c);}}"
> burned into my keyboard
I feel your pain.
import util.ex;
// adds trailing Exception for me b/c I'm declared lazy ;)
mixin NewException!("DivideByCucumber");
-- Daniel
More information about the Digitalmars-d
mailing list