Applying a tuple to a function (and more)

bearophile bearophileHUGS at lycos.com
Sun Sep 19 17:23:51 PDT 2010


> This program doesn't work:
> 
> import std.typecons;
> void main() {
>     auto t = tuple(42, 3.14);
>     double d = t[1];
> }
> 
> 
> And I think bug 2800 is unrelated:
> http://d.puremagic.com/issues/show_bug.cgi?id=2800

But now I have seen this:
http://www.dsource.org/projects/phobos/changeset/2018

Sorry, bye,
bearophile


More information about the Digitalmars-d-learn mailing list