-
Notifications
You must be signed in to change notification settings - Fork 0
Types
flofreud edited this page Apr 20, 2013
·
6 revisions
This article is a draft and work in progress. Feel free to comment and discuss on the issue tracker.
Name: long Impl: 64bit signed integer
Name: double Impl: 64bit IEEE 754 floating point
Name: bool Impl: typical boolean
Name: string Impl: array of 16-bit numbers representing characters in unicode scalar value format (like Java String)
Name: basictype[] Impl: array of any basictype (including array)
Name: record Impl: typical struct containing all basic types
The type conversion is implicit because there are no conversion parameter. The following type conversions are possible:
- num -> real
- assignment of num to real leads to conversion
- calculations with num and real leads to conversion
- real -> num
- assignment of real to num leads to conversion with flooring and mapping of unrepresentable values to max or min value
- num -> string
- assignment of num to string leads to conversion
- 'addition' of string and num leads to conversion with concat
- string with char representation of each number in decimal format without thousands separations
- real -> string
- ?? conversion to num ;) ??
- bool -> string
- assignment of bool to string leads to conversion
- 'addition' of string and bool leads to conversion with concat