test if object is instance of class at compile time

Andrew Wiley wiley.andrew.j at gmail.com
Thu Dec 22 10:33:01 PST 2011


On Thu, Dec 22, 2011 at 8:35 AM, Trass3r <un at known.com> wrote:
> I'd really like to have 'if (instance is ClassType)' syntax in D.

It couldn't use that syntax because 'is' means direct bitwise equality
everywhere else. Changing it in this one situation would be awkward.


More information about the Digitalmars-d-learn mailing list