Date: Wed, 26 Jan 2022 15:24:06 +0000
I’m looking at http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1389r0.html#delayreferences-references
And the code example there is almost literally taken from the textbook I’m writing. P1389 continues:
"Without a genuine use-case, references can make seem C++ look rather quirky! Instead, it is recommended that students be exposed to references in a practical fashion, such as when passing parameters to functions.”
I agree, which is why that code example in my book is preceded by
[cid:B94EB96E-86B3-4E10-9D14-45EC320BED3E]
and followed by
[cid:8C957894-0A1F-44A5-96D0-10F53F39692E]
Ok, so now my question to the author of that statement in P1389: please write a sample explanation of references in the context of parameter passing, without first explaining references.
Victor.
And the code example there is almost literally taken from the textbook I’m writing. P1389 continues:
"Without a genuine use-case, references can make seem C++ look rather quirky! Instead, it is recommended that students be exposed to references in a practical fashion, such as when passing parameters to functions.”
I agree, which is why that code example in my book is preceded by
[cid:B94EB96E-86B3-4E10-9D14-45EC320BED3E]
and followed by
[cid:8C957894-0A1F-44A5-96D0-10F53F39692E]
Ok, so now my question to the author of that statement in P1389: please write a sample explanation of references in the context of parameter passing, without first explaining references.
Victor.
Received on 2022-01-26 15:24:12