Cind language documentation
Objects and null value
An object type is a default type of an object
and also a type from which every object in the Cind language inherits
(for more about inheritance see Class inheritance).
is equivalent to defining variable without type:
And to define a variable of an array type of any object as an element, write:
For more about types of variables and arrays see Variables, Arrays
and Creating objects.
Object of class object accepts only one message isException returning false value.
Which means, that every object will also accept this message.
Value null represents missed value.
x = null;
For instance, every variable before first assignation will have null value,
and also fields of new created array will have null values
In the Cind language null is also an object.
assigns null object to the variable x,
which means, for example, that the previous value will be forgotten.
Object null accepts no messages and only two operators:
== and !=, which check,
if the second argument is also a null object.
Object null can be converted to the following types
(see Type conversion):
Converting the null object to any other type will keep null
object as a value.