|
Smalltalk/X WebserverDocumentation of class 'PrivateMetaclass': |
|
|
Class: PrivateMetaclassInheritance:Object | +--Behavior | +--ClassDescription | +--Metaclass | +--PrivateMetaclass
Description:
A PrivateMetaclass is much like a regular Metaclass, but it is only visible (known)
to some owningClass (which is also true for the PrivateMetaclasses sole instance).
Its sourceCode, package and revision is forced to be the same as the owning classes'.
Therefore, privateClasses delegate some queries to their owning class.
Caution: support for private classes is an ST/X special feature.
This mechanism may not be provided by other smalltalk systems,
making your code unportable.
(However, private classes can be simulated pretty easily, using classVariables
or classInstance variables ...)
Related information:
Behavior
ClassDescription
Class
Metaclass
Instance protocol:accessing
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 10:35:42 GMT
|