Original Post
This passed the assertion
int foo_handle_id = m->GetTypeIdByDecl("foo@");
assert(is_objhandle(foo_handle_id));But this didn't
int foo_handle_id = m->GetTypeInfoByDecl("foo@")->GetTypeId();
assert(is_objhandle(foo_handle_id));The is_objhandle(int type_id) tests the asTYPEID_OBJHANDLE bit.