From 177c7f96e93c6b8d9d206cd13f22c0d0d7d4192e Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 30 May 2020 19:55:01 +0200 Subject: [PATCH] spec: be explicit that NRVO will evolve further --- doc/manual.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/manual.rst b/doc/manual.rst index 2b9c2b65c9..f70c484a24 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -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