Top 5

ore-sama spam at here.lot
Thu Oct 9 03:32:48 PDT 2008


Mike Wrote:

> 4. Replace C-style switch with something modern and more D-like:
> 
> switch (x)
> {
>     case (0) foo();
>     case (1)
>     {
>         bar();
>         baz();
>     }
>     else throw new Exception("nope");
> }

looks interesting :)



More information about the Digitalmars-d mailing list