Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework some wording around out and inout parameters (#312)
This somewhat future proofs some aspects of the language here by saying that [in]out parameter initialization is copy-initialization, but the writeback assignment is _assignment_. That allows for clarity around overloaded operators so that the argument life becomes something like this: ``` auto &ArgTmp = (Arg); // Evaluate the argument expr saving it. T Param = ArgTmp; // Copy-initialize Param with Arg's result. call(Param); // Call the function. ArgTmp = Param; // Assign back the Param result with =. ```
- Loading branch information