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

[REBOL] Re: Back to the Advanced Port stuff again

From: g:santilli:tiscalinet:it at: 11-Jan-2001 19:29

Hello Paul! On 11-Gen-01, you wrote: PT> Lets forget about alternative methods for doing this another PT> way for a moment and explain where I can find the word that PT> is bound to the port object given only the object. This is PT> really what I seek to know. I'd suggest you to change your approach; in a similar script I'm using a block of objects (users), each of them has a PORT word referring to its port; PORT/LOCALS is set to refer back to the user object, so that you can access the user from the port too (when you receive a message from the port). You could simply set PORT/LOCALS to the nick. Anyway, if you really want to know (one of) the word(s) that refer(s) to your port in the global context, you can do it this way: words: first system/words values: second system/words if pos: find values port [ print first at words index? pos ] Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila --