It would be nice to have the function DeleteSlot in the Object class
~~~~~
virtual bool DeleteSlot(SQInteger index)
{
if(GetType() != OT_TABLE)
return false;
sq_pushobject(vm, GetObject());
sq_pushinteger(vm, index);
sq_deleteslot(vm,-2,false);
return true;
}
virtual bool DeleteSlot(const SQChar* slot)
{
if(GetType() != OT_TABLE)
return false;
sq_pushobject(vm, GetObject());
sq_pushstring(vm, slot,-1);
sq_deleteslot(vm,-2,false);
return true;
}
~~~~~
a sq_pop is missing at the end of the functions...