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");