rvalues -> ref (yup... again!)
Peter Campbell
peter at spcampbell.co.uk
Tue Mar 27 20:32:41 UTC 2018
On Tuesday, 27 March 2018 at 18:14:18 UTC, Manu wrote:
> That's exactly what I've been saying. For like, 9 years..
> It looks like this:
> https://github.com/TurkeyMan/DIPs/blob/ref_args/DIPs/DIP1xxx-rval_to_ref.md
> (contribution appreciated)
I've followed this thread since it was made as this has been one
of the very few disappointments of the language for me. I only
tend to write game code and use D for hobbyist projects whilst
using C++ full-time as a junior at a small games company. Even if
I take the attitude that I should use D as it is intended,
instead of trying to write C++ by using D, it always felt
unnecessarily obstructive to require me to make a temporary
variable to avoid copying something simple like a vector or a
matrix. It feels very restrictive when trying to express
mathematical calculations in a concise manner.
Thanks for writing that DIP, you have covered everything I would
love to see in great detail with good examples! I honestly
couldn't think of anything more that could be added.
More information about the Digitalmars-d
mailing list