Multiple return values

Jonathan M Davis jmdavisProg at gmx.com
Tue Jan 3 15:39:17 PST 2012


On Wednesday, January 04, 2012 00:40:13 Manu wrote:
> Why doesn't D support multiple return values like many other modern
> languages?

I'm not saying that being able to return multiple values wouldn't be nice, but 
in my experience, that's actually a very rare thing for languages to be able 
to do - especially among C-based languages. Regardless, std.typecons.Tuple is 
D's solution.

- Jonathan M Davis


More information about the Digitalmars-d mailing list