To get the dynamic type, first cast it to Object, then type id.
typeid(cast(Object) o) is typeid(WhateverClass)
Adam D. Ruppe via Digitalmars-d-learn Thu, 24 Dec 2020 08:45:38 -0800
To get the dynamic type, first cast it to Object, then type id.
typeid(cast(Object) o) is typeid(WhateverClass)