On 03/09/2012 05:14 PM, Manu wrote:
What I mean is this:

retTuple = func();
someStruct.x = retTuple[0];
y = retTuple[1];
// retTuple[2] is ignored, but the intent is not clear in the code as it
was in my prior example, I like how my prior example makes this intent
explicit
int err = retTuple[3];

This is pretty horrible. Surely you can see why I want to be able to
arbitrarily assign the return values directly?

Yes. I want to be able to do that too.

That's what I mean by 'abuse of the tuple syntax',

Ah ok. I misunderstood then.

Reply via email to