One document about Go
bearophile
bearophileHUGS at lycos.com
Tue Jun 1 15:41:22 PDT 2010
Jonathan M Davis:
> However, there are cases where you really want the function to be returning
> a single value - particularly when you're feeding the result into an
> expression - and it's nice to be able to still get other values out of the
> function with out or ref parameters.
I have not asked to remove out arguments from D, but they are for special situations only. In normal situations they aren't the best/most tidy way to return more than one item.
Bye,
bearophile
More information about the Digitalmars-d
mailing list