Hi, it looks as some responses didn't make it to my mailbox :-(

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.

Regards
    Ladislav

----- Puvodn� zpr�va -----
Od: <[EMAIL PROTECTED]>
Komu: <[EMAIL PROTECTED]>
Odesl�no: 25. kvetna 2000 18:53
Predmet: [REBOL] [REBOL]hidden variables in objects? Re:(4)


> I write primarily in both C and C++ and am slowly adding in
rebol.
> As I moved into C++ I developed the practice of making all data
> in an object private, and casting all pointers returned by
> method to const.
>
> I learned that by studying Smalltalk and Dynace.
>
> It appears that in rebol's case that accessing hidden
> members - even though possible - entails a greater level
> of verbosity, it makes it easier for the programmer
> to enforce some discipline. Regardless of the "power"
> of the language - and rebol is very "powerful" - it is
> technique that makes the difference in the end.
>
>
> At 05:20 PM 5/25/00 +0200, you wrote:
> >[EMAIL PROTECTED] wrote:
> >
> >> set first second get in object 'hiddena "not protected"
> >> >> object/hiddena
> >> == "not protected"
> >>
> >> Any opinions?
> >
> >I could argue that knowing the object model of your C++
compiler
> >you could simply use a pointer to the obejct to modify any
> >(private) field.
> >
> >Regards,
> >   Gabriele.
> >--
> >Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL
programmer
> >Amiga Group Italia sez. L'Aquila --
http://www.amyresource.it/AGI/
> >
> >
>
>

Reply via email to