Previous: 2.2.8.4. Relational Operators To the Table of Contents Next: 2.2.8.6. Operator Precedence
2.2.8.4. Relational Operators Table of Contents 2.2.8.6. Operator Precedence

- 2.2.8.5. -
Table of Contents
2. TMT Pascal Language Description
2.2. Pascal Language Structure
2.2.8. Expressions
2.2.8.5. Typecasts


2.2.8.5. 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: 2.2.8.4. Relational Operators To the Table of Contents Next: 2.2.8.6. Operator Precedence
2.2.8.4. Relational Operators Table of Contents 2.2.8.6. Operator Precedence

- 2.2.8.5. -