forward tuple arg to local variable + dtor

Adam Ruppe destructionator at gmail.com
Sat Jan 22 14:23:32 UTC 2022


You can't forward to a local variable. Local variables will be a 
copy of the tuple. forward only actually works if sent *directly* 
to another function call.

There's a bunch of things in D that only work in function 
parameter lists and not local variables. This is one of them.


More information about the Digitalmars-d-learn mailing list