Errors in TDPL
Walter Bright
newshound2 at digitalmars.com
Wed Jun 23 09:40:56 PDT 2010
Jonathan M Davis wrote:
> Well, while I, personally, would put a semicolon there (it feels naked to me
> without one), dmd doesn't actually seem to require it. But TDPL says that
> the semicolon is required. So, it does appear to be an error in the text. Of
> course, there's no helping his pet peeve regardless, but the semicolon
> doesn't appear to be required.
For reference for this discussion, the current grammar does not require it:
http://www.digitalmars.com/d/2.0/statement.html#DoStatement
The C grammar does require it:
do statement while ( expression ) ;
More information about the Digitalmars-d
mailing list