[Issue 7133] [tdpl] There should be no empty statement
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Dec 19 05:07:27 PST 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7133
Stewart Gordon <smjg at iname.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg at iname.com
           Platform|Other                       |All
         OS/Version|Mac OS X                    |All
           Severity|normal                      |enhancement
--- Comment #6 from Stewart Gordon <smjg at iname.com> 2011-12-19 05:07:21 PST ---
(In reply to comment #5)
> Is that different from C++? I thought that {} was just an empty scope without
> any statements in it at all in both C/C++ and D.
It is, but in 100% of cases the compiler can optimise away that empty scope and
so it's equivalent to an empty statement.
-- 
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