goto a no-go?

Dicebot public at dicebot.lv
Wed Oct 2 10:06:39 PDT 2013


On Wednesday, 2 October 2013 at 16:12:58 UTC, Jesse Phillips 
wrote:
>     if (word.length)
>         scope(exit) FormatOutput();
>
> This is the same as
>
>     if (word.length)
>         FormatOutput();
>
> The `if` introduces a new scope, thus running the code right 
> away.

Oops, shame on me. Too many `static if`s in my life :(


More information about the Digitalmars-d mailing list