.stringof

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 12 06:59:41 PDT 2016


On 12.06.2016 15:52, Timon Gehr wrote:
> You may very well be right that it would be more consistent to return
> the name of the alias, but I think what .stringof returns is an
> independent concern. (Last time I checked, it was completely unspecified
> anyway btw.)

What do you think about the following?

enum e=3;
static assert(e.stringof=="3");



More information about the Digitalmars-d mailing list