Gentee Programming Language > Documentation > Syntax Download documentation

Built-In Data Types

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 NameSize of TypeRange of ValuesComments
Integer types
sbyte1(4)-128+127signed
byte1(4)0+255unsigned
short2(4)-32768+32767signed
ushort2(4)0+65535unsigned
int4-2147483648+2147483647signed
uint40+4294967295unsigned
long8-2^63+2^63 - 1signed
ulong80+2^64 - 1unsigned
Floating types
float4(+ or -)10E-37(+ or -)10E38 
double8(+ 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.