www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19102] New: [Functions] pure functions repetition

https://issues.dlang.org/show_bug.cgi?id=19102

          Issue ID: 19102
           Summary: [Functions] pure functions repetition
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: john.michael.hall gmail.com

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.

--
Jul 19 2018