Bug 5458 – scope for function parameters is not documented

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-01-17T08:06:00Z
Last change time
2015-06-09T05:10:42Z
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-01-17T08:06:00Z
A user asked on SO about the semantics of scope in function parameters: http://stackoverflow.com/questions/4711309/meaning-of-scope-in-d-for-a-parameter It seems this isn't documented in the functions section: http://www.digitalmars.com/d/2.0/function.html It does say that the in storage class is equivalent to const scope, but it never defines what const does in function parameters. Could we please add this to the docs?
Comment #1 by andrej.mitrovich — 2011-07-11T08:24:46Z
Fixed in 2.054