[Issue 603] Undocumented behaviour: case and default create a scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 15 01:10:46 PST 2006


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


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from bugzilla at digitalmars.com  2006-12-15 03:10 -------
What happens is the { } after the switch creates a new scope. The case and
default statements are just labels. I believe the grammar implies this
behavior, and no changes are necessary.


-- 



More information about the Digitalmars-d-bugs mailing list