ETSI's Bug Tracker - TTCN-3 Change Requests
View Issue Details
0008222TTCN-3 Change RequestsClarificationpublic15-03-2024 08:3415-03-2024 08:34
Martin Hauch 
 
normalfeaturehave not tried
newopen 
TTCN-3 core language, chapter 8.2.3.1, EXAMPLE 4
    Devoteam GmbH, Martin Hauch
0008222: Clarification for renaming module
It is possible to import multiple times from one module. What is allowed for the renaming?
1. Always the same renamed-name
2. diffent names are allowed for each import-statement

import from VerylongModuleNameB -> ShortRule1 { type MytypeA} with {encode "Rule1"};
import from VerylongModuleNameB -> ShortRule2 { type MytypeB} with {encode "Rule2"};

If 'VerylongModuleNameB' should further not be used to avoid type-clash for the type, VerylongModuleNameB could also not used for the second import?
I.e.
import from VerylongModuleNameB -> ShortRule1 { type MytypeA} with {encode "Rule1"};
import from ShortRule1 -> ShortRule2 { type MytypeB} with {encode "Rule2"};
should be used, but this means that ShortRule1 is also not usable to identify a type. In case of the renaming semantic should the original module-name be usable to define a new module-definition, or should the name be usable for field- or enumeration-values in type definitions?

In my opinion the semantic of an alias-name would be easier to understand. This would allow multiple aliases for a module-name and the module-name itself is still valid to identify an object uniquely. The usage of the alias-names should be handled in the same manner as the module-name.
No tags attached.
Issue History
15-03-2024 08:34Martin HauchNew Issue

There are no notes attached to this issue.