problems with Rebindable

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 21 11:57:35 PDT 2016


On Saturday, 21 May 2016 at 10:42:13 UTC, chmike wrote:
>     switch(x1)
>     {
>     case Infos.one: writeln("case Infos.one"); break;
>     default: writeln("default"); break;
>     }

You can generate fairly unique ids and use them in switch 
statements like this: https://dpaste.dzfl.pl/873b5b4cf71e


More information about the Digitalmars-d-learn mailing list