Bug 1090 – Attribute specification: "}" vs "end of scope"

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-02T05:43:00Z
Last change time
2014-02-16T15:22:48Z
Keywords
spec
Assigned to
bugzilla
Creator
fvbommel

Comments

Comment #0 by fvbommel — 2007-04-02T05:43:46Z
In the first example block of the "Attributes" page of the spec, the "attribute:" syntax is noted as "affects all declarations until the next }". This is incorrect, since the innermost braces may be of the non-scoping variety. For instance: --- // These extern(X) attributes are applied until the end of the file version(Windows) { extern(Windows): } else { extern(C): } --- Also, there may not be any enclosing braces at all if it's at module-level. I think that text should be changed to something like "affects all declarations until the end of the current scope".
Comment #1 by bugzilla — 2007-04-20T13:17:53Z
Fixed DMD 1.013