Skip to content

Commit db44c22

Browse files
authored
Merge pull request #2388 from JinShil/discourage_in
Discourage use of the `in` storage class merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2 parents c74dabb + 93411be commit db44c22

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/function.dd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,10 @@ int foo(in int x, out int y, ref int z, int q);
11801180
$(THEAD Storage Class, Description)
11811181
$(TROW $(I none), parameter becomes a mutable copy of its argument)
11821182

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

0 commit comments

Comments
 (0)