It is sometimes useful to define special constant values to represent situations in the code;
MBFL defines the class mbfl_predefined_constant
for this purpose; we can use it to define
a void value as follows:
mbfl_default_object_declare(void) mbfl_predefined_constant_define _(void) function is_the_void () { mbfl_mandatory_parameter(DATAVAR, 1, a data variable) mbfl_datavar_eq("$DATAVAR",_(void)) }
code bases are always imperfect.
Class of objects representing unique constant values.
Define a new instance of mbfl_predefined_constant
.
Return true if the parameter is the datavar of an object of class mbfl_predefined_constant
;
otherwise return false.
mbfl_predefined_constant
: mbfl_undefined ¶A unique value used as variable’s value to indicate an undefined value.
mbfl_predefined_constant
: mbfl_unspecified ¶A unique value used as function call parameter to indicate an unspecified value.
Return true if the parameter is the data variable of mbfl_undefined
; otherwise return false.
Return true if the parameter is the data variable of mbfl_unspecified
; otherwise return
false.
This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.