test if object is instance of class at compile time

Vladimir Panteleev vladimir at thecybershadow.net
Wed Dec 21 19:23:36 PST 2011


On Wednesday, 21 December 2011 at 20:15:36 UTC, Elvis Maehren 
wrote:
> Is this somehow catchable?

I believe that's what __traits(compiles, ...) is for:

http://dlang.org/traits.html#compiles


More information about the Digitalmars-d-learn mailing list