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