[dmd-beta] Migration path for enum Endian?

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Sep 6 15:12:31 PDT 2011


On 9/7/11, Andrei Alexandrescu <andrei at erdani.com> 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


More information about the dmd-beta mailing list