D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19323 - Pure function nesting explanation; move to correct spot in specs
Summary: Pure function nesting explanation; move to correct spot in specs
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P1 trivial
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-21 12:30 UTC by ARaspiK
Modified: 2021-03-18 18:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description ARaspiK 2018-10-21 12:30:29 UTC
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.
Comment 1 wolframw 2021-03-18 18:09:57 UTC
Fixed by https://github.com/dlang/dlang.org/pull/2890.