Do I have to pass parameters with ref explicitly?
Elfstone
elfstone at yeah.net
Sun Apr 17 13:41:03 UTC 2022
Thanks Ali. That's a lot of information.
I'm learning D by rewriting my hobbyist project. I guess I can
worry about optimization later.
On Sunday, 17 April 2022 at 08:45:11 UTC, Ali Çehreli wrote:
> - Somewhat related, unlike C++, D does not allow binding
> rvalues to 'const ref'. (This point is relevant for 'in' below.)
Yeah, I just found out about that. It seems many things are done
differently with D, but so far the code turns out to be a lot
less clumsy than the C++ version. It's a good sign.
More information about the Digitalmars-d-learn
mailing list