enum scope
Trass3r
un at known.com
Sat Jan 28 14:03:31 PST 2012
> No it's not. Your sample won't compile with -property. That's why I've
> wrapped it into a template, to avoid having to use parens.
Never used -property.
I don't mind adding parentheses either.
> Fair enough. But if we're going to be anal about it you should add a
> constraint `if (is(EnumType == enum))`. Otherwise your sample will
> compile for non-enum types
I do have that constraint in some other version of the function in another
project.
So it's an old one.
More information about the Digitalmars-d
mailing list