On Friday, 27 May 2016 at 16:56:21 UTC, Steven Schveighoffer wrote:
Why are you expecting it to be?

Won't work for enums with first elements that are non-zero either:

enum foo : int {
 bar = 1;
}

foo f;

if(f) writeln("this will output too");

-Steve


but by default it works you just changed the default so its ok that it doesnt work.

Reply via email to