[EMAIL PROTECTED] wrote:
>OK, the protection/hiding looks comfortable enough.
>But, there is another problem (besides the GC fault, that will be
>repaired for sure). You cannot use inheritance for the hidden
>wordss, which makes a big difference in OOP.

There isn't _any_ C++/Smalltalk-style inheritance in REBOL
at all. That makes a _very_ big difference in OOP.

REBOL OOP is prototype-based, with no built in inheritance,
and no classes. Code reuse is done through delegation, like
Self or JavaScript. You can emulate inheritance through the
use of class objects that you delegate to (similar to the
way that Smalltalk is implemented internally). Constructors
are just functions that create objects, like in JavaScript.

You must unlearn what you have learned, young Jedi :), from
class-based OOP languages like C++ and Smalltalk. You have
to do a little more work if you want to have the overhead
of inheritance in a unique-object language. Inheritance in
REBOL is just a design pattern, although sometimes a useful
one for some purposes.

>Regards
>     Ladislav

And to you.
Brian

Reply via email to