Seems like its not possible... how would i solve this problem?
Btw. labes in the datasection did not work, thats why i moved the vtable into a struct.
What i tried:
Code: Select all
EnableExplicit
Structure DUMMY
*vt
value.i
EndStructure
Structure VTABLE
*proc[16]
EndStructure
Structure GAME
dummy.DUMMY
vtable.VTABLE
EndStructure
Interface I_DUMMY
Hello.i()
EndInterface
Global game.GAME
Procedure.i Hello(*dummy.DUMMY)
MessageRequester("Test",*dummy\value)
ProcedureReturn 456
EndProcedure
Procedure.i Init()
Protected *test.I_DUMMY
game\vtable\proc[0] = @Hello()
game\dummy\vt = @game\vtable
game\dummy\value = 123
Debug *test\Hello()
EndProcedure
Init()