Skip to content

Commit

Permalink
spec: be explicit that NRVO will evolve further
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed May 30, 2020
1 parent 984af3d commit 177c7f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3714,6 +3714,10 @@ location is derived from the second parameter (called
NRVO
----

**Note**: This section describes the current implementation. This part
of the language specification will be changed.
See https://github.com/nim-lang/RFCs/issues/230 for more information.

The return value is represented inside the body of a routine as the special
`result`:idx: variable. This allows for a mechanism much like C++'s
"named return value optimization" (`NRVO`:idx:). NRVO means that the stores
Expand Down

0 comments on commit 177c7f9

Please sign in to comment.