www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19323] New: Pure function nesting explanation; move to

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

          Issue ID: 19323
           Summary: Pure function nesting explanation; move to correct
                    spot in specs
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: dlang.org
          Assignee: nobody puremagic.com
          Reporter: araspik protonmail.com

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.

--
Oct 21 2018