The Right Approach to Exceptions

H. S. Teoh hsteoh at quickfur.ath.cx
Mon Feb 20 11:38:34 PST 2012


On Mon, Feb 20, 2012 at 08:23:05PM +0100, deadalnix wrote:
[...]
> Why not use tupleof on the Exception instead of Variant[string] ?

+1.

Compile-time type-checking and runtime generic access to fields.  Best
of both worlds. Excellent idea!


T

-- 
Ruby is essentially Perl minus Wall.


More information about the Digitalmars-d mailing list