[REBOL] Re: function to object?
From: nitsch-lists:netcologne at: 5-Nov-2003 16:23
Am Mittwoch, 5. November 2003 13:53 schrieb bryan:
> Am reading a little rant against object orientation
> http://www.bluetail.com/~joe/vol1/v1_oo.html
>
> When suddenly I wondered, can one convert a function to an object in
> rebol?
means what?
f: func[][alert "hi"]
o: context[f: none]
o/f: :f
o/f
;?
or functions with state?
o: context[
state: 1
set 'f func[][state: state + 1 alert mold state]
]
f f f
or? (reading article later ;)
-Volker