Shouldn't __traits return Tuples?
Daniel Keep
daniel.keep.lists at gmail.com
Wed Apr 1 23:43:41 PDT 2009
Trass3r wrote:
> I came across another strange bug(?):
> Using const, static const or auto instead of enum makes it work.
> Using the foreach way also works with enum.
>
> void main()
> {
> enum members = ["foo", "bar"];
> for (uint i=0; i<members.length; i++)
> // foreach (i; Sequence!(members.length))
> {
> writefln(members[i]);
> }
> }
>
> But enum with for yields:
>
> ...
Wow, I think you just made the executable puke its guts! :S
-- Daniel
More information about the Digitalmars-d
mailing list