How to test for equality of types?

Kenji Hara k.hara.pg at gmail.com
Sun May 20 00:28:48 PDT 2012


On Sunday, 20 May 2012 at 06:57:20 UTC, Kenji Hara wrote:
> On Saturday, 19 May 2012 at 18:17:16 UTC, Matthias Walter wrote:
>> Using the current git version of dmd I realized that C works! 
>> Hence, as
>> a workaround it can be used by creating a local alias A and 
>> subsequently
>> using A.Alias in the is-expressions. But it seems odd that
>>
>> "alias typeof(X).A B;" does not work but
>> "alias typeof(X) Y; alias Y.A B;" does.
>>
>> Is this considered as a bug?
>>
>> Best regards,
>>
>> Matthias
>
> It seems to me that is a regression by fixing bug 6475.
> Now I'm trying to fix them.

I've filed the bug in bugzilla:
http://d.puremagic.com/issues/show_bug.cgi?id=8123

And posted a pull request to fix it:
https://github.com/D-Programming-Language/dmd/pull/957

Thanks.

Kenji Hara


More information about the Digitalmars-d-learn mailing list