[REBOL] Re: Windows Callbacks
From: jeff:rebol at: 2-Jan-2001 10:14
Howdy, Ric:
You can't really make a callback function in REBOL, meaning
like you have a REBOL function and you have a library
routine take a pointer to that REBOL function as a
callback. At this time you really have to have C functions
act as callbacks. You can manage this with REBOL/command
like this:
Create another dynamic library containing your callback
functions and a function that returns a pointer to those
functions. REBOL/command script gets those pointer to
functions as integers and passes them along into routines
that expect pointers to call back functions.
You could have a callback function modify globals that the
command script could check...
I can provide a more complete example if you like.
-jeff