Ok, I know this has been discussed before, and i have been one of the naysayers, however, my idea is different from the oens before. Instead of the pointer being tied to a specific instance (slow), the pointer simply points at the internal function and you pass the type you are operating on as the first parameter. The reason I want this is that I have realized that the best way to write my interpreter with the possibility of using internal functions/types, etc is to use pointers. For instance:
RegisterFunction("SetRotation(Rotation#)",SetRotation)
Actually, I'll still facce obsticles even with doing this because there is no way to know how many parameters there are except at run time.... Okay, another suggestion - allow passing of a special type of array instead of the parameters. This array would hold the values you wish to pass into the parameters. It doesnt matter if this system throws an error on variable incompatability or incorrect number - aslong as i can catch it as well ;) I know, tall order, BRL, but it'd allow for a really cool interpreter system.
RegisterFunction("SetRotation(Rotation#)",SetRotation)
Actually, I'll still facce obsticles even with doing this because there is no way to know how many parameters there are except at run time.... Okay, another suggestion - allow passing of a special type of array instead of the parameters. This array would hold the values you wish to pass into the parameters. It doesnt matter if this system throws an error on variable incompatability or incorrect number - aslong as i can catch it as well ;) I know, tall order, BRL, but it'd allow for a really cool interpreter system.