Tuple to tuple conversion

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Tue Jun 8 03:41:55 PDT 2010


On Tue, 08 Jun 2010 12:31:50 +0200, Simen kjaeraas wrote:

> Lars T. Kyllingstad <public at kyllingen.nospamnet> wrote:
> 
>> FWIW, I've run across the same error, while writing code that had
>> nothing to do with tuples.  And I've seen others complaining about it
>> too.  It seems to be a rather elusive bug in Phobos.
> 
> This has now been tracked down to the importing of std.typecons in two
> included files.
> 
> Test case:
> 
> //////////////////////
> module a;
> import std.typecons;
> alias Tuple!( float ) foo;
> 
> //////////////////////
> module b;
> import std.typecons;


I'm not sure I understand this.  Do you then import a and b into another 
module to reproduce the error?  This doesn't do it for me...

Anyway, I was wrong calling this a Phobos bug.  It's clearly a DMD bug, 
since the error message

    static assert (is(Tuple!(string,float) == Tuple!(string,float)))
    is false

is completely meaningless.


More information about the Digitalmars-d-learn mailing list