Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Listener process

From: atruter:labyrinth:au at: 3-Sep-2003 13:44

Hi Gregg,
> P.S. If you decide to do it yourself, I (or others) can provide some > boilerplate to get you going.
That would be much appreciated, as I am only interested in pretty basic stuff at the moment (more command / response orientated than code passing, not worrying about multiple callers). The following code snippets illustrate (hopefully!) what I'm trying to achieve. ; Listener script ... forever [ cmd: get-cmd result: switch/default cmd [ 0 [quit] 1 ["one"] 2 ["two"] ][ none ] send-result result ] ... ; Calling script ... result: send-cmd 1 if not none? result [print result] ... Regards, Ashley