Programming language Chora: Data types
Each data member definition (e.g. property or local variable) requires precise information regarding the content it is intended to store at the runtime. With this information, the Chora compiler can determine the right operations to perform on the member when it is initialized or involved as operand within an expressions.
Chora provides a rich set of built-in data types you can additionally extend by your own class, enumeration and set definitions. Following is the overview of the Chora data type system:
Data type |
Short description |
---|---|
Represents any other data type. |
|
Boolean value true or false. |
|
16-bit UNICODE character. |
|
Reference to any Chora class. |
|
Structure containing red, green, blue and alpha color information. |
|
Floating-point number with single precision. |
|
Safe reference to a target system resource. |
|
8, 16, 32 or 64-bit signed integer number. |
|
Identification of a language within a localized, multi-lingual application. |
|
Reference to an instance of any Chora class. |
|
Structure containing x and y information. |
|
Structure containing the coordinates of a rectangle. |
|
Reference to a slot method. |
|
16-bit UNICODE string. |
|
Represents any combination of styles within in multi-variant application. |
|
8, 16, 32 or 64-bit unsigned integer number. |
|
Represents 'no data'. |
|
Reference to an instance of a certain Chora class. |
|
Represents one of the values defined in an enumeration member. |
|
Represents any combination of values defined in a set member. |
|
Reference to a property. |