Defined for procedures, useful for OOP
Posted: Sun Mar 05, 2006 9:46 pm
let's see if i can explain. i have an object that fires events, those events are stored as pointers to functions and they are called only if there is a pointer. the pointers are filled using put_myevent(@myevent())
if i could do something like
this way declaring a procedure starting with the namespace and the event name would be called as an event. similar like vbs i think
if i could do something like
Code: Select all
Macro app_namespace
app
endmacro
Macro app_fillevents(appobject)
CompilerIf Defined(app_namespace#myevent, #PB_Procedure)
appobject\myevent = @app_namespace#myevent()
CompilerEndIf
endmacro
Code: Select all
procedure appmyevent()
endprocedure