-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 30, 2000 8:51 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] refinements Re:(7)
> [EMAIL PROTECTED] wrote:
> > What you are missing is that I want the function element of door-man
> (speak) to call a global function defined outside of the object to perform
> the functionality.
> I think your design needs better encapsulation. I prefer to have objects
which can act under their own power, without having to rely on unrelated
functions to hold their hand.
:) I know it sounds flaky, and might even defeat the purpose for defining
the function element in the first place (ie why don't I just call the global
function directly?) if I didn't think I knew better :). I suppose the real
reason why I'm comfortable with it is that I'm not an OO programmer, I just
borrow OO concepts to improve my programming. Another is that the "global"
functions I am calling aren't used as global - they are only global because
REBOL doesn't suport a module context.
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.
> If you're trying to communicate between actor objects, making a
communications object or make a block/dialect with the message in it. So
that you reduce interdependence in the design.
My objects are dependent on certain function definitions in the program to
make them work - this is by design. I guess, if you are looking at these
from a stricter OO point of view, these are "broken" or "crippled" objects.
The method functions in the program are logically private only to the
associated object. The concept of a "communications object" is new to me,
though. I'll have to meditate on that. I wonder if I can create a single
"melee" object...
> I hope that helps.
You have valid points, well taken. I may be trying to push REBOL into doing
things that it is not designed (well) for.
- Michael Jelinek