2.10 Object-oriented programming
Keywords: onyx

Next: 2.11 Dictionary reference Up: 2. Onyx Language Reference Previous: 2.9 Regular expressions Contents Index

#
2.10 Object-oriented programming

Onyx provides basic mechanisms for programming in an object-oriented style. The class and instance types, additional attributes (callable, invokable, and fetchable), a set of operators, and vclass, provide all the necessary functionality. The object-oriented programming support can be summarized by the following feature list:

- Single inheritance.
- Reasonably fast fully dynamic method dispach.
- No hindrances, such as private/protected/public data/method distinctions.
- Full introspection capabilities.

Very little policy is built into the operators that implement the foundation for object-oriented programming support. See Section 2.12.1 for details on the policies that are set by vclass, which is provided as a default base class.