PROTECTED]>
> Sent: Wednesday, November 05, 2003 5:26 PM
> Subject: [REBOL] Re: function to object?
>
> -- snip--
> > A collegue once described to me his moment of enlightenment when a
> > professor had drawn on the blackboard a table showing relationships
> > between so
Thanks for that wonderful post -- all of it !
- Jason
- Original Message -
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 5:26 PM
Subject: [REBOL] Re: function to object?
-- snip--
> A collegue once desc
Hi, Bryan,
bryan wrote:
> Am reading a little rant against object orientation
> http://www.bluetail.com/~joe/vol1/v1_oo.html
>
"Rant" being the operative word. One can tell from the title that
this is somebody venting his spleen and not contributing to any
objective discussion of programming s
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
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-ob