Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
EDT:EGL Language Primitive Types
Revision as of 12:26, 7 July 2011 by Unnamed Poltroon (Talk) (New page: Please see the parent of this page, EDT:EGL_Language. == Primitive Types (Table 3) == {| width="400" cellspacing="1" cellpadding="1" border="1" style="" |- | bgcolor="#999999" align...)
Please see the parent of this page, EDT:EGL_Language.
Primitive Types (Table 3)
Primitive Types | Core | JavaScript | Java | Debug |
Any | |
|
|
|
Boolean | |
|
|
|
Dictionary | |
|
|
|
String(N)1 | |
|
|
|
String2 | |
|
|
|
Timestamp(pattern)3 | |
|
|
|
Timestamp3, 8 | |
|
|
|
Blob | |
N/S |
|
|
Clob | |
N/S |
|
|
Smallint | |
|
|
|
Int | |
|
|
|
Bigint | |
|
|
|
Decimal(N,M) | |
|
|
|
Decimal(N) | |
|
|
|
Decimal4 | |
|
|
|
Float | |
|
|
|
Smallfloat | |
|
|
|
Number5 | |
|
|
|
Bytes(N)6 | |
|
|
|
Bytes7 | |
|
|
|
Arraydictionary |
|
N/S | N/S | N/S |
Char |
|
N/S | N/S | N/S |
Dbchar |
|
N/S | N/S | N/S |
Mbchar |
|
N/S | N/S | N/S |
Unicode |
|
N/S | N/S | N/S |
Hex6 |
|
N/S | N/S | N/S |
Date3 |
|
N/S | N/S | N/S |
Time3 |
|
N/S | N/S | N/S |
Interval3 |
|
N/S | N/S | N/S |
Bin |
|
N/S | N/S | N/S |
Num |
|
N/S | N/S | N/S |
Numc |
|
N/S | N/S | N/S |
Pacf |
|
N/S | N/S | N/S |
Money |
|
N/S | N/S | N/S |
Notes on Table 3
- String(N) is a reference type in EDT.
- String is a reference type in EDT.
- Timestamp is the only supported date/time type. Use it in place of RBD's date, time, and interval.
- Decimal with no length or decimals is a reference type with an immutable value.
- Number is a reference type with an immutable value. Unlike in RBD, number variables can be declared anywhere a variable declaration is allowed.
- Bytes(N) is a value type similar to RBD's hex. N indicates the number of bytes in the value. (In RBD, the length of a hex is the number of nibbles not the nubmer of bytes.)
- Bytes with no length is a reference type with an immutable value of any length.
- Timestamp with no pattern is a reference type in EDT. It can hold any timestamp value.
More about the Bytes type
Bytes is meant to hold data with no particular format.
TODO assignments and comparisons with bytes
The bytes type supports the substring operator. The type of the result is bytes (with no length).