Debug information for enumerator values

Tove tove at fransson.se
Tue Sep 17 03:02:34 PDT 2013


On Tuesday, 17 September 2013 at 09:52:37 UTC, Iain Buclaw wrote:
> (gdb) print ('test.enum_ulong')3
> $11 = (test.enum_ulong.kE2 | test.enum_ulong.kE3)
>
> (gdb) print ('test.enum_ulong')2
> $12 = test.enum_ulong.kE3
>
> What do you think?  Is <module>.<name>.<member> too verbose, or 
> just right? :-)
>
> Regards
> Iain

Kickass! I think it's "just right"... _BUT_ in case of multiple 
values, I would prefer something like this:

$11 = test.enum_ulong(kE2 | kE3)


More information about the Digitalmars-d mailing list