Skip to content
flofreud edited this page Apr 20, 2013 · 6 revisions

Document Status: Draft / Work in Progress

This article is a draft and work in progress. Feel free to comment and discuss on the issue tracker.

Types

UML Types hierarchy

num

Name: long Impl: 64bit signed integer

real

Name: double Impl: 64bit IEEE 754 floating point

bool

Name: bool Impl: typical boolean

string

Name: string Impl: array of 16-bit numbers representing characters in unicode scalar value format (like Java String)

array

Name: basictype[] Impl: array of any basictype (including array)

record

Name: record Impl: typical struct containing all basic types

type conversion

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
Clone this wiki locally