[Issue 10199] labels cannot be used without a statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 29 03:09:08 PDT 2013


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


Alex Rønne Petersen <alex at lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex at lycus.org
         Resolution|                            |INVALID


--- Comment #1 from Alex Rønne Petersen <alex at lycus.org> 2013-05-29 12:09:07 CEST ---
This is by design. Labels in D aren't just "labels", they are labelled
statements; not the same thing as in C. You're supposed to use `{}` to denote
an empty statement to jump to. `;` being allowed is a legacy artifact that will
(hopefully!) be killed eventually.

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