| LockClass[class, attributes] is automatically called if a class gets the attribute Locked. If the class has or gets the attribute Protected , LockClass redirects access to Static members and assigns the given attributes. Additionally, subclasses are saved in the DownValues of Descendants. If the class has or gets the attribute ReadProtected, VirtualMemberTable[class] is stored and encrypted together with Class[class] and ClassInformation[class, Pattern]. |
This loads the package.
Now, we seal the class. The command is equivalent to call SetAttributes[lockedReadProtected, {ReadProtected, Locked}]. If the class must be immutable, please add Protected to the attributes list.
| |||||||||||||||||||||||||