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-26 14:43

If D is a "new" C, why they still use ugly-as-fuck reserved words or functions with preceding underscores?

>>2
read http://dis.4chan.org/read/prog/1284059342

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