On 3/24/14, 9:57 AM, bearophile wrote:
Andrei Alexandrescu:

Look at some of the syntaxes here:
http://wiki.dlang.org/DIP32#Use_case_of_uniform_tuple_syntax

One of the syntaxes:

@{}
@{a}
@{a, b}
@{a, b, c}

WTF???

tuple()
tuple(a)
tuple(a, b)
tuple(a, b, c)


Andrei

So you are saying you want to support a syntax like this?

tuple(a, b, c) = myFunc();

That would be a different function but same syntax. In fact for safety I favor myFunc().scatter(a, b, c) -- Andrei

Reply via email to