[Objects] in [SnakeCharmer] have associated [Methods] and attributes, but they can also inherit these from a superclass. Multiple objects can link to the same superclass, and share the same methods. Classes can also inherit each other. Currently Objects are limited to one superclass. Classes can be stored in the Library
Object within the storserv base Object.
To inherit the methods from a superclass an Object must have an attribute called "Class
" which links to an Object. All of the methods from the linked Object can be called directly from the child object. When attributes are assigned a value by a method, the attribute within the calling Object is modified. When retrieving a attribute pstorage gradually moves up the Object hierarchy until the attribute is found, else it throws an exception.
The easiest way to get familiar with it is to try it out. More information, including an example, will come later.
Wiki: Links
Wiki: Methods
Wiki: Objects
Wiki: SPI Lab
Wiki: SnakeCharmer
Wiki: Table of Contents