How about a Hash template?

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Apr 28 09:20:24 PDT 2011


Well, DMD accepts this kind of syntax already:

if (value == val1, val2, val3) { }

I think this turns the expression value==val1 into a bool, and then
turns val2 and val3 into bools and compares against each of them. Or
something like that. It's odd and I've never seen it used anywhere.

Maybe we could put that syntax into good use.


More information about the Digitalmars-d mailing list