Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hidden /Proctected properties
Message
 
To
04/12/1998 14:33:00
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00164076
Message ID:
00164227
Views:
19
What you are effectively saying, therefore, is that not only it is a bug,
but they have documented the bug as a FEATURE !!!

I always thought it was crazy not to be able to hide properties that
are only used by the class - glad to see that on this issue I am the one
who is sane, not Microsoft .... :)

Michel.

=================== Original message follows =======================

>>Actually, Erik, I am not so sure that it is a bug. If it is I'd like to know.
>
>It is.
>
>>From the documentation a hidden property is hidden from all objects but
>>the class itself.
>
>The code that breaks my class is in the class definition itself, not in a subclass, and not in an instance. Since
>
>>It's in the doc. I personally cannot see the point of it since
>>you cannot "run a class", you always have to create an object based
>>on it ....
>
>The point is to create a 'clean' interface for your object. If some properties and methods are designed to be used only internally by the class itself, they should not be exposed in the instance or subclass' interface. This was the purpose in the design of Protected and hidden properties, but it seems that something was lost along the way, and the functionality is dysfunctionality.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform