We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ref
1 parent a4e799b commit 3a376e5Copy full SHA for 3a376e5
spec/function.dd
@@ -598,9 +598,11 @@ $(H2 $(LNAME2 nothrow-functions, Nothrow Functions))
598
599
$(H2 $(LNAME2 ref-functions, Ref Functions))
600
601
- $(P Ref functions allow functions to return by reference,
602
- meaning that the return value must be an lvalue, and
603
- the lvalue is returned, not the rvalue.
+ $(P `ref` functions return by reference (instead of by value).
+ The return value of a `ref` function must be an lvalue
+ (whereas the return value of a non-`ref` function can be an rvalue, too).
604
+ An expression formed by calling a `ref` function is an lvalue
605
+ (whereas an expression formed by calling a non-`ref` function is an rvalue).
606
)
607
608
---
0 commit comments