programming

a virtual stack? : sep 22

it can work. it is only needed for return values, but what happens when a dotted function calls another dotted function? yikes. it could work automatically though if you had to pass in a stack to the call function.

Float3* getPosition();

void Float16_Matrix44::getPosition(gbDotableCallStack& stack)
{
Float16* self=dynamic_cast(stack.pop());

stack.push(Float3(gbMatrix44f::extractTranslation(self._value));
}

this doesn't work because you don't have prototypes to know what to cast back to? would a reinterpret cast work?