Little quiz

bearophile bearophileHUGS at lycos.com
Fri Mar 25 04:32:51 PDT 2011


Jacob Carlborg:

> I would guess it prints the values of all the fields in the struct 
> returned by "tuple".

That was of course my purpose, because tuples are a way to implement multiple return values, and in some situations I want to print all the items of such return tuple, on separated lines, for debugging purposes, etc. But unfortunately (for me too) that's not the right answer. Try again... I have found a little surprise.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list