destruct

Destructs a class that's been previously constructed with construct() and when the static type is not known.

This overload is only selected when the instance is casted as Object. It should be used when there no guarantee that the instance type is the most derived. This overload is never @nogc.

Parameters

instance
Type: T

A class instance casted to Object.

Meta