Previous: Relational Operators To the Table of Content Next: Operator Precedence

- 2.2.8.5 -
TMT Pascal Language Description
Pascal Language Structure
Expressions

Typecasts

Typecasts allow operands of one type to be converted to another type. Typecasts are allowed on either values or variables. Typecasts on values are restricted to ordinal and pointer types. The only restriction on typecasts on variables is that the sizes of both types must be the same. The following are examples of typecasts:
   Integer('0')
   Boolean(1)
   DWORD(@BuffPtr)
   Char(27)
   Pointer($A0000)



Previous: Relational Operators To the Table of Content Next: Operator Precedence
Relational Operators Table of Content Operator Precedence

- 2.2.8.5 -