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

[REBOL] Re: function to object?

From: SunandaDH:aol at: 5-Nov-2003 8:29

Bryan:
> When suddenly I wondered, can one convert a function to an object in > rebol?
You can easily *add* a function to an object..... a-function: func [a b /local c] [c: a + b print c] a-function 19 21 ;; test it works an-object: make object! [a-function-in-an-object: :a-function] an-object/a-function-in-an-object 19 21 ;; test it works too Sunanda.