TypeClass* from Type*
Hi,
how get Noesis::TypeClass* from Noesis::Symbol or Noesis::Type* ?
how get Noesis::TypeClass* from Noesis::Symbol or Noesis::Type* ?
Re: TypeClass* from Type*
If you know the Type is a TypeClass just a simple cast is enough:
But if the type may be something different then you can do a dynamic cast:
Code: Select all
TypeClass* typeClass = (TypeClass*)type;
Code: Select all
TypeClass* typeClass = DynamicCast<TypeClass*>(type);
if (typeClass) { ... }
Who is online
Users browsing this forum: No registered users and 22 guests