Compile time checks and alias this

Chris Cain clcain at uncg.edu
Tue Dec 17 13:41:35 PST 2013


On Tuesday, 17 December 2013 at 21:28:12 UTC, Andrea Fontana 
wrote:
> Hey didn't this mean "is derived from"? :)
>>>
>>> Is there a way to check this at compile time?
>>
>> is(T : MyClass1)

It actually means "is implicitly convertable to", which "is 
derived from" satisfies.


More information about the Digitalmars-d-learn mailing list