Bug 19102 – [Functions] pure functions repetition

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P4
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-07-19T21:13:24Z
Last change time
2023-02-08T19:53:07Z
Assigned to
No Owner
Creator
John Hall

Comments

Comment #0 by john.michael.hall — 2018-07-19T21:13:24Z
Under 5 pure functions it says: --- 4) To control mutations, D has the immutable type qualifier. If all of a pure function's parameters are immutable or copied values without any indirections, it can guarantee that the pure function has no side effects. 5) To prevent mutation, D offers the immutable type qualifier. If all of a pure function's parameters are immutable or copied values without any indirections (e.g. int), the type system guarantees no side effects. --- which are basically the same, but one says "D has the" and the other says "D offers the". I would change it myself, but I'm not sure which one it should be.
Comment #1 by john.michael.hall — 2023-02-08T19:53:07Z
This part of the spec has been re-written.