Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this intended Behaviour ?
Message
From
03/12/2003 15:11:20
 
 
To
03/12/2003 06:44:48
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00855319
Message ID:
00855590
Views:
17
> You need to understand that "protected" is description how to handle the
> object. Methods and Properties are owned by the object so they
> inhertit "protected".

In Fox, 'HIDDEN' and 'PROTECTED' are a complete & utter mess. In addition to the senseless behaviour they also exact a runtime penalty, so it is best to avoid them altogether. Standardized comment tags like '*private*' etc. in class definitions serve equally well for documentation purposes, as does suffixing private/protected members with an underscore so that naughty acts like messing with other object's private parts are easy to recognize for both human readers and automated tools.

In any sane system one would expect an object reference to behave according to the referenced object's class definition, regardless of which other objects happen to hold private/protected/whatnot references to the object in question. Also, the Fox model isn't even terribly consistent with itself.
Previous
Reply
Map
View

Click here to load this message in the networking platform