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

[REBOL] Re: Executable code blocks as arguments

From: cyphre:volny:cz at: 22-Aug-2001 19:06

Hello Tim, try this: o: make object![ a: 1 b: 2 c: 3 modify: func[arg[block!]][do bind arg 'a] ] the magic is in 'bind ;-) USAGE: BIND words known-word /copy DESCRIPTION: Binds words to a specified context. BIND is a native value. ARGUMENTS: words -- A block of words or single word. (Type: block word) known-word -- A sample word from the target context. (Type: word) REFINEMENTS: /copy -- Deep copies block before binding it. Have fun! Cyphre