11.2.3.3 Operations on instances of mbfl_default_object

Function: mbfl_default_object_class_var DEFCLS_RV DEFOBJ

Store in the result variable DEFCLS_RV the data variable of the class of DEFOBJ.

mbfl_default_class_declare(COLOUR)
mbfl_default_object_declare(DARK_SLATE_BLUE)

mbfl_default_class_define _(COLOUR) _(mbfl_default_object) 'colour' r g b
colour_define _(DARK_SLATE_BLUE) 72 61 139

declare METACLASS CLASS

mbfl_default_object_class_var METACLASS _(COLOUR)
mbfl_default_object_class_var CLASS     _(DARK_SLATE_BLUE)

$METACLASS      ⇒ _(mbfl_default_class)
$CLASS          ⇒ _(COLOUR)
Function: mbfl_default_object_class_name_var NAME_RV DEFOBJ

Store in the result variable NAME_RV a string representing DEFOBJ’s class name.

mbfl_default_class_declare(COLOUR)
mbfl_default_object_declare(DARK_SLATE_BLUE)

mbfl_default_class_define _(COLOUR) _(mbfl_default_object) 'colour' r g b
colour_define _(DARK_SLATE_BLUE) 72 61 139

mbfl_declare_varref(NAME)

mbfl_default_object_class_name_var _(NAME) _(DARK_SLATE_BLUE)

"$NAME"         ⇒ colour

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