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

[REBOL] Re: faq

From: greggirwin:mindspring at: 19-Jan-2002 9:25

Hi Pat, << Problem resolution Get must be used twice: (1) in the fn2 definition. (2) in the fn2 call. fn2: func [ f [function!] ][ print "My task is to affect obj/obj-func with fn1" obj/obj-func: get 'f ] fn2 get 'fn1 >> You could also use the get-word syntax to avoid evaluation of the function during assignment: fn2: func [ f [function!] ][ print "My task is to affect obj/obj-func with fn1" obj/obj-func: :f ] fn2 :fn1 --Gregg