Bug 1318 – scope + ref/out parameters are allowed, contrary to spec

Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2007-07-05T18:00:00Z
Last change time
2015-06-09T01:04:59Z
Keywords
accepts-invalid, spec
Assigned to
bugzilla
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2007-07-05T18:00:02Z
From http://www.digitalmars.com/d/attribute.html : > scope cannot be applied to globals, statics, data members, ref or out parameters. However, this is not fully enforced - the compiler accepts "scope ref" and "scope out" parameters in function argument lists.
Comment #1 by bugzilla — 2007-07-30T15:49:24Z
Fixed DMD 2.003