On Saturday, 24 March 2018 at 11:57:25 UTC, John Colvin wrote:
I understand what you want, but I'm struggling to understand
why it's such a huge deal.
...
What I would do in D currently to get the same performance and
API:
void foo(float[32] v) { foo(v); }
void foo(ref float[32] v) { ... }
or
void foo()(auto ref float[32] v) { ... }
What is so totally unacceptable about those solutions?
I hope OP answers that, because that was what I tried to refer in
my post.
As your example, it works like in C and I'd prefer to use it in
my code, instead of passing a rvalue as reference.
Matt.