How to test for equality of types?

Philippe Sigaud philippe.sigaud at gmail.com
Sat May 19 23:00:36 PDT 2012


> 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?

I should say so: it's surprising, and limiting for the user.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20120520/37aff11b/attachment.html>


More information about the Digitalmars-d-learn mailing list