Skip to content

Commit 9e3886b

Browse files
committed
[spec/function] An out parameter is initialized by default construction
See https://forum.dlang.org/post/hshfpaikdvgbyqzkxlzn@forum.dlang.org.
1 parent 7a4c03b commit 9e3886b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/function.dd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,8 @@ $(H3 $(LNAME2 ref-params, Ref and Out Parameters))
15771577
$(RELATIVE_LINK2 return-ref-parameters, Return Ref Parameters.))
15781578

15791579
$(P An `out` parameter is similar to a `ref` parameter, except it is initialized
1580-
with `x.init` upon function invocation.)
1580+
by $(DDSUBLINK spec/property, init-vs-construction, default construction) upon
1581+
function invocation.)
15811582

15821583
$(SPEC_RUNNABLE_EXAMPLE_RUN
15831584
---

0 commit comments

Comments
 (0)