On 9/7/11, Andrei Alexandrescu <[email protected]> wrote:
> I think EnumMembers is used rarely enough to not warrant much worry.

O.T. but EnumMembers is great for testing purposes. I've recently used
it to test various drawing methods which are selected at compile-time
via an enum argument, snippet below:

foreach (index, method; EnumMembers!RoundMethod)
{
    roundedRectangle!(method)(ctx, index * xPos, 0, 100, 100, 10, 10);
    ctx.fill();
}

results: http://i.imgur.com/hTuGl.png
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to