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