|
|
Re: variable definition [message #1803415 is a reply to message #1803413] |
Thu, 28 February 2019 09:58 |
|
Hi Le Tian,
the lack of global variables is intentional, and has the following philosophy:
components are being used to simulate separate nodes in TTCN-3 ; these nodes can be physically distinct, located in different geographical positions etc.
in the physical reality they are forced to communicate among themselves over physical channels that present an amount of latency /delay.
Simulations are forced, in lack of global variables, to use connections (e.g. internal ports) between components that are the equivalent of the above physical channels.
If global variables would exist, components could communicate with each other using such shared variables, which would lead to an unrealistic simulation.
So lack of global variables is more a feature that enforces a discipline and a way of thinking than a missing language element.
Best regards
Elemer
|
|
|
Powered by
FUDForum. Page generated in 0.03566 seconds