DIP for multiple auto ref values

Jacob Carlborg doob at me.com
Tue Apr 9 18:15:30 UTC 2019


On 2019-04-09 17:12, Stefanos Baziotis wrote:

> No, I didn't, thanks a lot Andre. From what I can understand, having tuples
> built into the language does not solve the problem of returning multiple
> auto ref values (or just multiple ref values), correct?

Technically returning a tuple would be returning a single value. But the 
value is a collection of values, so it contains multiple values. With 
some syntax sugar to auto expand the tuple it's very similar, if not, 
exactly the same as returning multiple values.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list