rt.cast_

Implementation of array assignment support routines.

Members

Functions

_d_interface_cast
void* _d_interface_cast(void* p, ClassInfo c)

Attempts to cast Object o to class c. Returns o if successful, null if not.

_d_toObject
Object _d_toObject(void* p)

Given a pointer: If it is an Object, return that Object. If it is an interface, return the Object implementing the interface. If it is null, return null. Else, undefined crash

Meta

Authors

Walter Bright, Sean Kelly