[Issue 199] Label causes scope to collapse into parent
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 29 14:23:05 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=199
--- Comment #25 from Stewart Gordon <smjg at iname.com> 2013-05-29 14:23:04 PDT ---
(In reply to comment #24)
> I propose changing the spec like this:
>
> ScopeBlockOrNoScopeStatement: <-- new
> NoScopeStatement
> ScopeBlockStatement
>
> LabeledStatement:
> Identifier : ScopeBlockOrNoScopeStatement <-- use the new one
How would all this differ from, let alone be an improvement over, simply
changing LabeledStatement to
LabeledStatement:
Identifier : Statement
?
> NoScopeStatement:
> ;
> NonEmptyStatement
> <-- remove BlockStament to remove conflict with ScopeBlockStatement
>
> That leaves the only other user of NoScopeStatement in question:
>
> PragmaStatement:
> Pragma NoScopeStatement
What about conditional compliation statements (debug, version, static if)?
These are the primary reason NoScopeStatement exists in the first place.
--
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