| Gentee Programming Language > Documentation > Syntax | Download documentation |
Actually, Gentee distinguishes the following data types: fundamental, structure and the reserved type. All fundamental types and some structure ones are built in the language. Structure types are defined by the type command.
Fundamental types:
Type Name Size of Type Range of Values Comments Integer types sbyte 1(4) -128 +127 signed byte 1(4) 0 +255 unsigned short 2(4) -32768 +32767 signed ushort 2(4) 0 +65535 unsigned int 4 -2147483648 +2147483647 signed uint 4 0 +4294967295 unsigned long 8 -2^63 +2^63 - 1 signed ulong 8 0 +2^64 - 1 unsigned Floating types float 4 (+ or -)10E-37 (+ or -)10E38 double 8 (+ or -)10E-307 (+ or -)10E308
Gentee has strict typing.
uint is a one of the fundamental integer types, which is combined with any structure type and is applied to store an address. The Gentee language is unlikely to have any pointer types; instead, uint type is used.
When performing arithmetic operations the following types: sbyte, byte, short, ushort are considered as the int or the uint type, which is subject to the signed/unsigned type.
The reserved type is of special significance, which belongs neither to the fundamental types nor to the structure ones. This type is denoted by the array of bytes, which is defined and used as the array. The distinctive feature of the reserved type is that, the memory space is reserved where it has been defined, for example, a field in a structure.
reserved field[50] means that a memory space of 50 bytes will be reserved in the structure. The size of memory reservation allows up to 65 535 bytes. Bear in mind that you should not use an expression in order to specify the required size. It is a constant number that must be enclosed in square brackets.
More information regarding the structure types accessed by default is provided in the Library's section.
Copyright © 2004-2006 Gentee Inc. All rights reserved. |