D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 21362 - Unclear specification of `in` parameter storage class
Summary: Unclear specification of `in` parameter storage class
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P1 critical
Assignee: No Owner
URL:
Keywords: industry
Depends on:
Blocks:
 
Reported: 2020-11-03 23:21 UTC by johanengelen
Modified: 2021-10-25 05:19 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 johanengelen 2020-11-03 23:21:38 UTC
At  https://dlang.org/spec/function.html#param-storage  it is unclear what the meaning of `in` is, because of the last sentence "This requires the -preview=in switch, available in v2.094.0 or higher." What does "This" refer to?
Please reformulate, for example by:

"The parameter is an input to the function. Input parameters behaves as if they have the const scope storage classes....
When `-preview=in` switch is passed to compiler, the semantics become:
The parameter is an input to the function. Input parameters behaves as if they have the const scope storage classes....
"
Comment 1 Mathias LANG 2021-10-25 05:19:08 UTC
Fixed in https://github.com/dlang/dlang.org/pull/2937 by making it the start of the section (and its own section).