Multiple return values...

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Mar 11 11:59:23 PDT 2012


On 3/11/12 8:08 AM, David Nadlinger wrote:
> On Sunday, 11 March 2012 at 03:04:38 UTC, Andrei Alexandrescu wrote:
>> This analogy is tenuous for D because functions are defined to return
>> one type, e.g. typeof(fun(args)) is defined. Once we get into
>> disallowing that for certain functions, we're looking at major
>> language changes for little benefit.
>
> TypeTuple!(ReturnType1, ReturnType2)?

So how is the proposed feature any different from Tuple?

Andrei



More information about the Digitalmars-d mailing list