H (Hybrid) Language - v0.03, by Dr. Herong Yang
Constructor Function: boolean()
This section describes 'boolean' constructor function boolean().
New "boolean" data object can be created with the "boolean" constructor function, boolean(), which has the following syntax:
boolean(a = $true) Parameters: a - A "boolean" data object. Default is $true. Return: Returns a new "boolean" data object representing the same value as "a".
Examples of how to use "boolean" constructor function:
boolean(); # create a new data object representing $true x = boolean(); # assign a new data object representing $true to x # assign a new data object representing $false to y y = boolean(1 > 2);
Design options:
1. Let the constructor return $true if no parameter provided.
2. Make the parameter as required for the constructor.
Table of Contents
►Constructor Function: boolean()
Inheritance - Object Attachments