To everybody proposing "full" tuple returns

Janice Caron caron800 at googlemail.com
Mon Apr 14 23:20:22 PDT 2008


On 15/04/2008, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
> Right now from what I understand Tuple!(int,float) can be a return
> value from a D2 function.

Providing you import std.typecons, yes.

There is an unfortunate ambiguity in the D docs about what a Tuple is.
(http://digitalmars.com/d/2.0/tuple.html conflicts with
http://digitalmars.com/d/2.0/phobos/std_typecons.html). I have
submitted a bugzilla report about that. Anyway, a std.typecons.Tuple
is what you want. That's the one that can be a return value from a D2
function.



More information about the Digitalmars-d mailing list