Use class template as a type
ag0aep6g via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Nov 30 06:53:21 PST 2016
On 11/30/2016 10:42 AM, Bauss wrote:
> Usually casts to base classes can be determined if they're valid at
> compile-time.
Yeah, that's what I said. A cast to a base class is an "upcast". Upcasts
don't need run-time checks. The other direction (cast to more derived
class) is a downcast. Downcasts need run-time checks.
More information about the Digitalmars-d-learn
mailing list