Michael Jelinek wrote (in refinements thread):
> I really just want to separate the definition of the method (function
body) from the object, but I still want the method to be called as part of
the object. Some of these objects can be saved to a file and reloaded, and I
want the function "bound" to the latest definition in the program, not what
the definition was at the time that the object was saved. Also, although I
can't claim to "know" the internals of REBOL, I don't want multiple copies
(or worse, definitions) of the function floating around - it's inefficient.

This is the core of the problem. To have one function per "class" of object,
not one function per instance, for REBOL. This is easily done in C++, not so
easily in REBOL. I'm sure it can be done with some suitably cunning script.

I'll have to think about it more deeply, after I've done some fiddling.

Andrew Martin
OO Rebol...
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-

Reply via email to