If that code was not already wrong even thought its just a showcase, it perhaps would make sense ;-)
A correct implementation of such a feature would look similar to function pointer declaration already allows you to work (and basically could be done with methods and reflection as well):
but in the end, the implementations must still be in the same file.
A correct implementation of such a feature would look similar to function pointer declaration already allows you to work (and basically could be done with methods and reflection as well):
Type Animal Field HP:int Field Kill() Method Feed() HP:+1 End Method End Type Method Animal::Kill() HP=0 End Method
but in the end, the implementations must still be in the same file.