[Issue 199] Label causes scope to collapse into parent
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 29 12:05:25 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=199
--- Comment #21 from Stewart Gordon <smjg at iname.com> 2013-05-29 12:05:24 PDT ---
The only statement nodes that create a scope according to the spec are
ScopeStatement and ScopeBlockStatement. When you have
Identifier : { StatementList }
the structure is
LabeledStatement
Identifier
:
NoScopeStatement
BlockStatement
{
StatementList
}
No node that creates a scope here. It's the same way with the conditional
compilation statements. Of course, statements within the StatementList may
introduce their own scopes, but nothing in this parse tree as it stands creates
a scope.
--
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