Requirements

‒ 10 Declaring constants

‒‒ 10 Declaring constants/01

A constant assigns a name to a fixed value. A value is assigned only once to a constant, at the place of its declaration. The constant does not change its value during test execution. The constant is defined only once, but can be referenced multiple times in a TTCN-3 module.

‒‒ 10 Declaring constants/03

TTCN-3 constants are run-time constants. After value assignment, they do not change their value during test execution. They can be used on the right hand side of assignments, in expressions, in actual parameters, and in template definitions. Constants used within type definitions have to have values known at compile-time.


...

‒‒ Semantic Description