Declaring Ref Variables Inside Function Calls
Jarrett Billingsley
jarrett.billingsley at gmail.com
Tue Mar 31 09:15:46 PDT 2009
2009/3/30 dsimcha <dsimcha at yahoo.com>:
> // How it works now:
> uint foo;
> string bar;
> unpack(foo, bar) = someFunction();
>
> // vs. how I want it to work:
> unpack(auto foo, auto bar) = someFunction();
Cute, but uh, I'd much rather see tuples just be returnable. That
would practically remove the need for out parameters, and would remove
the need for this request as well (since that's about the only time
you'd need it).
More information about the Digitalmars-d
mailing list