Hi,
In the caluse below there is seven basic units of scope:
"5.3.0 General
TTCN-3 provides six basic units of scope:
a) module definition part;
b) control part of a module;
c) component types;
d) functions;
e) altsteps;
f) test cases;
g) "blocks of statements and declarations" within compound statements."
Clause 22.9 example after correction (MyPtc -> MyPtcType):
testcase MyTestCase() runs on MyMtcType system MyTestSystemInterface
{
:
var integer i;
var MyPTCType1 MyPtcType[11];
:
for (i:= 0; i<=10; i:=i+1)
{
MyPtcType := MyPtcType1.create;
connect(self:PtcCoordination, MyPtcAddresses:MtcCoordination);
MyPtcType .start(MyPtcBehaviour());
}
:
}
Clause 7.5.2 example after correction (MyRecordType_T1 -> RecordType_T1):
type record RecordType_T2 {
RecordType_T1 Field1_T2, // Use of RecordType_T1
RecordType_T1 Field2_T2,
integer Field3_T2
}
BR,
Mariusz Kupiec