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

[REBOL] context of a function

From: fsievert:uos at: 18-Aug-2000 18:31

Hi! Is there a way to get the words of the context of a function? Example: f: func [a] [] g: func [a] [print a] Does anyone know a way to change function f AFTER its definition in that way, that it will work like function g? The following does not work: insert second :f reduce ['print first first :f] Because the first (and third) of a function is not bound to the functions context. I think there is no direct way to get the word with binding, I could only get the words out of functions body :( I am working at a serialize script, which also serializes contexts etc. CU, Frank