The empty statement ";" - when is it useful?

Stewart Gordon smjg_1998 at yahoo.com
Sun Jul 26 15:57:04 PDT 2009


KennyTM~ wrote:
<snip>
> for (; cond; inc) { ... }

ForStatement:
     for (Initialize Test; Increment) ScopeStatement

Initialize:
     ;
     NoScopeNonEmptyStatement

a syntactic form in its own right, so irrelevant to the general case of 
; as a statement.

Stewart.



More information about the Digitalmars-d mailing list