-
Notifications
You must be signed in to change notification settings - Fork 0
Advanced Customization
Protolk's object system is extremely flexible. Many things about pobs can be customized, even on the level of an individual pob or a hierarchy of pobs. Some of the behaviors you can change are:
- How a pob looks up props and methods.
- How a pob receives and processes messages.
- How a pob handles missing methods.
- How a pob finds and invokes super methods.
- How pob inheritance/ancestry works.
- How a pob initializes derived pobs.
- How a pob is printed as text.
If you want to do this sort of advanced customization, there are some key parts of the system you will want to change:
- The pob's
prop-resolver
andmethod-resolver
procedures. - The pob's
_receive
and_method-missing
internal methods. - The pob's
ancestors
andhas-ancestor?
methods.* - The pob's
derive
method.* - The pob's
_display
internal method.
* These method names are just for consistency with stdpob. Feel free to come up with other method names or signatures to fit your custom behavior, especially if you don't derive from stdpob.
The protolk-primitives
module contains the "primitive" API, i.e. the low level procedures that underly the high level Protolk API that most users will use. The primitives API is provided to make advanced customization easier. See Primitive API for details.
(Not yet written.)
(Not yet written.)
(Not yet written.)
(Not yet written.)
(Not yet written.)