Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discourage use of the in storage class #2388

Merged
merged 1 commit into from
Jun 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion spec/function.dd
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,10 @@ int foo(in int x, out int y, ref int z, int q);
$(THEAD Storage Class, Description)
$(TROW $(I none), parameter becomes a mutable copy of its argument)

$(TROW $(D in), equivalent to $(D const))
$(TROW $(D in), defined as $(D scope const). However $(D in) has not yet been properly
implemented so it's current implementation is equivalent to $(D const). It is recommended
to avoid using $(D in) until it is properly defined and implemented. Use $(D scope const)
or $(D const) explicitly instead.)
$(TROW $(D out), parameter is initialized upon function entry with the default value
for its type)

Expand Down