Datatype Abbreviations

Use datatype abbreviations to provide alternate names to datatypes. Abbreviations are most useful when working with long datatype names.

To give alternative names to datatypes, use the typedef declaration. This example declares euros to be another name for the money datatype:
typedef money euros;
This declares a variable price of that datatype:
euros price := 10.70d; 
You can also use the typeof operator to simplify datatype definitions. This operator returns the datatype of the expression.
typeof(price) newPrice := 10.70d;
The above is an equivalent way of writing:
money newPrice := 10.70d;