function DatablockOne::doSomething(%this, %obj, %arg)
{
// Really long and complicated code.
}
function DatablockTwo::doSomething(%this, %obj, %arg)
{
return DatablockOne::doSomething(%this, %obj, %arg);
}
DatablockTwo.doSomething(%obj, true);
The above code will work. DatablockTwo will completely emulate DatablockOne's functionality. In fact, %this in DatablockOne's function will properly reference DatablockTwo, if DatablockTwo is what was originally called.
Can anyone think of a reason this code should not be used?