Skip to content
Closed
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
6 changes: 6 additions & 0 deletions spec/function.dd
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,12 @@ int foo(in int x, out int y, ref int z, int q);
$(TROW $(D scope), references in the parameter
cannot be escaped (e.g. assigned to a global variable).
Ignored for parameters with no references)
$(TROW $(D return), Parameter may be returned or copied to the first parameter,
$(TROW $(D const), argument is implicitly converted to a const type)
but otherwise does not escape from the function.
Such copies are required not to outlive the argument(s) they were derived from.
Ignored for parameters with no references.
See $(DDSUBLINK memory-safe-d, scope-params, Scope Parameters).)
$(TROW $(D lazy), argument is evaluated by the called function and not by the caller)
$(TROW $(D const), argument is implicitly converted to a const type)
$(TROW $(D immutable), argument is implicitly converted to an immutable type)
Expand Down