11.2.2.2 Predicates on instances of the default object class

Function: mbfl_default_object_maybe_p STR

Return true if the given parameter is the name of a data variable and the data variable is an object whose class is a subclass of mbfl_default_object; otherwise return false. There is no way to be sure that a given string STR is actually a proper reference to a default object; this function tries its best.

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_default_object_maybe_p _(COLOUR)           ⇒ true
mbfl_default_object_maybe_p _(DARK_SLATE_BLUE)  ⇒ true
mbfl_default_object_maybe_p 'ciao'              ⇒ false
Function: mbfl_the_default_object_p DEFOBJ

Return true if the parameter is the datavar of mbfl_default_object; otherwise return false.

mbfl_the_default_object_p _(mbfl_default_object)
⇒ true
Function: mbfl_the_default_class_p DEFOBJ

Return true if the parameter is the datavar of mbfl_default_class; otherwise return false.

mbfl_the_default_class_p _(mbfl_default_class)
⇒ true
Function: mbfl_the_default_abstract_class_p DEFOBJ

Return true if the parameter is the datavar of mbfl_default_abstract_class; otherwise return false.

mbfl_the_default_abstract_class_p _(mbfl_default_abstract_class)
⇒ true

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