11.2.4.3 Accessors on instances of mbfl_default_class

Function: mbfl_default_class_parent_var PARENT_RV DEFCLS

Store in the result variable PARENT_RV the data variable of the parent of DEFCLS.

mbfl_default_class_declare(COLOUR)
mbfl_declare_varref(PARENT)

mbfl_default_class_define _(COLOUR) _(mbfl_default_object) 'colour' red green blue
mbfl_default_class_parent_var _(PARENT) _(COLOUR)
$PARENT ⇒ _(mbfl_default_object)
Function: mbfl_default_class_name_var NAME_RV DEFCLS

Store in the result variable NAME_RV the string representing the name of DEFCLS.

mbfl_default_class_declare(COLOUR)
mbfl_declare_varref(NAME)

mbfl_default_class_define _(COLOUR) _(mbfl_default_object) 'colour' red green blue
mbfl_default_class_name_var _(NAME) _(COLOUR)
$NAME ⇒ colour
Function: mbfl_default_class_fields_number_var FIELDS_NUMBER_RV DEFCLS

Store in the result variable FIELDS_NUMBER_RV the number of fields in instances of DEFCLS.

mbfl_default_class_declare(COLOUR)
mbfl_declare_varref(FIELDS_NUMBER)

mbfl_default_class_define _(COLOUR) _(mbfl_default_object) 'colour' red green blue
mbfl_default_class_fields_number_var _(FIELDS_NUMBER) _(COLOUR)
$FIELDS_NUMBER ⇒ 3

This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.