The Right Approach to Exceptions

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Feb 21 06:14:17 PST 2012


On 2/21/12 4:34 AM, deadalnix wrote:
> Le 20/02/2012 21:57, Andrei Alexandrescu a écrit :
>> class DRoxException : Exception
>> {
>> mixin(enableRTTI);
>> ... normal implementation ...
>> }
>>
>>
>> Andrei
>>
>>
>
> Why not using std.rtti and generate run time reflection info from
> compile time reflexion capability ?
>
> This would enable that feature without writing it the language, so it
> would prevent to bloat the binary when size matter and reflexion isn't
> needed.

Yes, that's the idea.

Andrei


More information about the Digitalmars-d mailing list