Skip to content

Commit

Permalink
Discourage use of the in storage class
Browse files Browse the repository at this point in the history
  • Loading branch information
JinShil committed Jun 15, 2018
1 parent c74dabb commit 93411be
Showing 1 changed file with 4 additions and 1 deletion.
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

0 comments on commit 93411be

Please sign in to comment.