D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5476 - spec: attributes have an optional else clause
Summary: spec: attributes have an optional else clause
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-22 13:24 UTC by Ellery Newcomer
Modified: 2012-01-20 16:28 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ellery Newcomer 2011-01-22 13:24:19 UTC
http://www.digitalmars.com/d/2.0/attribute.html:

attribute
    declaration;
else
    declaration;

attribute			// affects all declarations in the block
{
    declaration;
    declaration;
    ...
}
else
{
    declaration;
    declaration;
    ...
}

Either I'm misunderstanding something, or this is and has been wrong for quite a while
Comment 1 Walter Bright 2012-01-20 16:28:22 UTC
Removed from spec for 1.073/2.058