[dmd-beta] D2 2.058 alpha

David Simcha dsimcha at gmail.com
Wed Feb 8 05:56:49 PST 2012


On 2/8/2012 5:50 AM, Walter Bright wrote:
> http://ftp.digitalmars.com/dmd2beta.zip
>
> I'm calling it an alpha because we haven't resolved the associative 
> array issue. But I want to see if there are any others before we do a 
> release.
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta
>

Bug 7426 is still broken in cases that worked in 2.057.

struct S {
     static if(hasIndirections!(typeof(this))) {}
}

template hasIndirections(T)
{
     enum hasIndirections = hasIndirectionsImpl!(typeof(T.init.tupleof));
}

template hasIndirectionsImpl(T...)
{
     static if (!T.length)
     {
         enum hasIndirectionsImpl = false;
     }
     else
     {
         enum hasIndirectionsImpl = true;
     }
}



More information about the dmd-beta mailing list