[Issue 7133] [tdpl] There should be no empty statement
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Dec 19 07:17:33 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7133
--- Comment #9 from Stewart Gordon <smjg at iname.com> 2011-12-19 07:17:31 PST ---
(In reply to comment #8)
> I think it is useful. This looks odd:
> 
>     int    i = 2;
>     for({} i<2; i++){}
The ; you're replacing there isn't a statement - it's something explicitly
allowed by the ForStatement syntax.
ForStatement:
    for (Initialize Testopt ; Incrementopt) ScopeStatement
Initialize:
    ;
    NoScopeNonEmptyStatement
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list