[Issue 7133] [tdpl] There should be no empty statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 24 04:41:27 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7133


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #10 from Don <clugdbug at yahoo.com.au> 2011-12-24 04:41:20 PST ---
(In reply to comment #2)
> LABEL: {}
> 
> is as good and marginally nicer.
Bear in mind that it only ever happens at the end of a block, so the next
character is always a }.

The existing label syntax needs to be retained for asm statements, though,
since they don't have {}.

asm {
  jmp done;
done:
     ;
}
which is already ugly, and will look really silly when nude ; statements are
gone. I wish we could get rid of that silly semicolon.
In fact the oddity is that labels are considered to be statements, yet they
don't end with a semicolon.

-- 
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