Functions which return multiple values?
Bill Baxter
dnewsgroup at billbaxter.com
Sat Sep 29 05:16:39 PDT 2007
Frank Benoit wrote:
> Dan schrieb:
>> Without using an array or struct, can D return more than one value from a function? If not, why isn't this a desirable feature for a programming language to have?
>
> You can use "out" arguments or a tuple return type.
At the end of the video of Walter's talk at the NWCPP users group he
says he'd like to add the ability to return tuples. But I don't know if
that's still something rattling around in his mind or not.
--bb
More information about the Digitalmars-d-learn
mailing list