Try: enum RunOpt { opt1, opt2, opt3 } // No semicolon herefinal switch (option) with (RunOpt) { case opt1: fun1(...); break; case opt2: fun2(...); break; case opt3: fun3(...); break; } Bye, bearophile
My hero.
Jonathan via Digitalmars-d-learn Tue, 16 Sep 2014 10:25:57 -0700
Try: enum RunOpt { opt1, opt2, opt3 } // No semicolon herefinal switch (option) with (RunOpt) { case opt1: fun1(...); break; case opt2: fun2(...); break; case opt3: fun3(...); break; } Bye, bearophile
My hero.