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.
2 parents 301db73 + 33a6e5f commit 27f9403Copy full SHA for 27f9403
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 A `ref` function returns 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