https://issues.dlang.org/show_bug.cgi?id=14758

--- Comment #12 from Sobirari Muhomori <[email protected]> ---
Downcasts can be done the COM way:

void* TypeId(T)=&TypeId;

final T toType(T)()
{
  cast(T)toType(TypeId!T); //reinterpret_cast
}

override void* toType(void* typeId)
{
  if(typeId==TypeId!Me)return this;
}

--

Reply via email to