Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The Ultimate Language

Name: Anonymous 2012-01-26 14:07


enum action : string
{
    x = "test",
    y = "test2",
    z = "test3"
}

foreach (a; __traits(allMembers, action))
{
    if (input == a)
    {
        return mixin("action." ~ a);
    }
}


Why is /prog/ not using D? Why is *everyone* not using D?

Name: Anonymous 2012-01-27 9:50

I use C++ because... it's C for lazier people, and C is all ya you need.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List