Bug 19323 – Pure function nesting explanation; move to correct spot in specs
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-10-21T12:30:29Z
Last change time
2021-03-18T18:09:57Z
Assigned to
No Owner
Creator
ARaspiK
Comments
Comment #0 by araspik — 2018-10-21T12:30:29Z
https://dlang.org/spec/function.html#inout-functions
Within 19.10 (Inout Functions), point 9 states:
Nested functions inside pure function are implicitly marked as pure.
<code example...>
This should be either under 19.5 (Pure Functions) or 19.18 (Nested Functions). I suggest the latter.