The object–oriented programming facilities implemented by MBFL have the following core concepts:
mbfl_default_object
is a class; it is the default top superclass of classes in
MBFL.
mbfl_default_object
.
mbfl_default_object
.
mbfl_default_object
has itself a class, called metaclass, it is
mbfl_default_abstract_class
. A class has mbfl_default_object
as superclass if and
only if: its metaclass is mbfl_default_class
or its metaclass is a subclass of
mbfl_default_class
.
mbfl_default_object
has the layout specified by
mbfl_default_object
.
mbfl_default_object
and its subclasses have the layout specified by
mbfl_default_class
.
mbfl_default_object
is a Bash index array with the following layout:
instance[0] ⇒ _(SUBCLASS_OF_MBFL_DEFAULT_OBJECT) instance[1] ⇒ 1st field value instance[2] ⇒ 2nd field value ...
an array element with key ‘0’ is always present and its value is a string; the string represents the name of an array; the array is the instance’s class definition.
NAMEREF
mechanism, a
reference is the name of a data variable; Variable name references for details.
• objects default overview objects: | Overview of default objects. | |
• objects default overview classes: | Overview of default classes. |
This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.