Data types
A data operated by the Cind language are
objects of system types (described below),
objects of defined classes (see Classes),
functions (see Functions),
arrays (see Arrays),
vectors (see Vector of values),
and external objects (see External objects).
System types are:
Every value is treated as an object, which can be stored in variable and responds to messages and operators.
For methods accepted by values and allowed type conversion see Methods of the system type objects.
For type conversion methods see Type conversion.
Integer number -
Value of type
Its internal representation is a 64-bit (8 bytes) register.
Notation allows decimal, hexadecimal and binary form.
Examples of notation:
Accepted operations:
When result of operation failed or reached out of integer's range, then there will be an exception thrown.
Text value -
Text inserted between quotation marks
Compiler reads text characters in UTF-8 charset (where first 128 bytes are ANSI characters).
Supported escape chars:
Operator
Boolean value -
A boolean value could be the one of two values:
Accepted operations:
Character -
Char object represents one text character.
There are no explicit notation of char, but in above examples, string
Every character can has unicode value from 0 to 0x7FFFFFFF.
Accepted operations:
Operations
Byte -
Byte value represents 8-bit register. Its integer value can be from 0 to 255.
There are no explicit notation of byte, but in above example, integer
Accepted operations:
When result of operation reached out of byte's range, then it will be converted modulo 256 to fit in byte's register,
and (unlike as in
Floating point number -
Type
In 64 bits, there are 1 bit of sign, 52 bites of mantissa and 11 bites of exponent in base 2.
Examples of notation:
Accepted operations:
Float object has also special methods
Function -
Functions as also treated as objects, which can be handled as values of
For more about functions see Functions.
Binary data -
Sheet object is a set of bytes, which represents the managed part of the memory.
For more info see Sheet object.