www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1090] New: Attribute specification: "}" vs "end of scope"

reply d-bugmail puremagic.com writes:

           Summary: Attribute specification: "}" vs "end of scope"
           Product: D
           Version: 1.010
          Platform: PC
               URL: http://www.digitalmars.com/d/attribute.html
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: fvbommel wxs.nl

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) {
} else {
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".

Apr 02 2007
parent d-bugmail puremagic.com writes:

bugzilla digitalmars.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

------- Comment #1 from bugzilla digitalmars.com  2007-04-20 13:17 -------
Fixed DMD 1.013

Apr 20 2007