Functions which return multiple values?

Sean Kelly sean at f4.ca
Sat Sep 29 18:44:40 PDT 2007


Dan wrote:
> 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?

This is possible with user-defined tuples, but the built-in tuples need 
to be wrapped in a struct to do the same.


Sean


More information about the Digitalmars-d-learn mailing list