[Issue 199] Label causes scope to collapse into parent
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 29 05:21:56 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=199
Nick Treleaven <ntrel-public at yahoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ntrel-public at yahoo.co.uk
--- Comment #15 from Nick Treleaven <ntrel-public at yahoo.co.uk> 2013-05-29 05:21:55 PDT ---
comment #1:
> Adding '{}' immediately after the label seems to be a viable workaround.
Or moving the label inside the block:
{
label:
/* code */
}
Walter Bright, comment #6:
> I don't want to change this because it could break existing code
We could deprecate having a BlockStatement after a label, with a message
suggesting to move the label within the block. That way no code gets broken.
--
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