You are right, this is actually sort of a bug(in my head) I forgot to expose this feature in the api.
It will be in the next realease in this form
SQRESULT sq_getbase(HSQUIRRELVM v,SQInteger idx)
{
SQObjectPtr *o = NULL;
_GETSAFE_OBJ(v, idx, OT_CLASS,o);
if(_class(*o)->_base)
v->Push(SQObjectPtr(_class(*o)->_base));
else
v->Push(_null_);
return SQ_OK;
}
you can paste this in sqapi.cpp
ciao
Alberto