|
|
Type declarationsType declarations create new named data types. The format for type declarations is:
TYPE {Name = TypeSpecification;}
Name is the name of the new type. TypeSpecification can be:
If the TypeSpecification is a type name, the new type is equivalent to the named type. Otherwise, a new type is created. Examples:
TYPE
Integer = INTEGER;
SmallInt = [-10..10];
Color = (Red, Green, Blue);
CharPointer = POINTER TO CHAR;
ColorSet = SET OF COLOR;
String = ARRAY [0..255] OF CHAR;
Complex = RECORD A,B : REAL; END;
RealFunc = PROCEDURE(REAL) : REAL;
Source:
|