Semicolon can be left out after do-while

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Apr 13 07:13:51 PDT 2011


On 4/13/11, Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> I know that if(xyz); is not *ever* what I meant, but in C it compiles.
> However, in D, it tells me I shouldn't do that.

I've been caught by DMD doing this a couple of times. It saved my
butt. Thanks, Walter!


More information about the Digitalmars-d-learn mailing list