ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details
0003381Part 01: TTCN-3 Core LanguageClarificationpublic16-05-2008 10:0007-10-2008 07:07
Thomas Deiß 
Ina Schieferdecker 
normalminorhave not tried
closedfixed 
 
v4.1.1 (published 2009-06)v4.1.1 (published 2009-06) 
5.2
Nokia Siemens Networks, Thomas Deiß
0003381: scope unit of modulenames
The use of modulenames as identifiers is not 100% clear from part1:
In the subsequent example, the declaration of ma as typeand of mb as local variable is not allowed because ma and mb are already used as modulenames and these are considered to be higher scope units. And then the general clause that identifiers of higher scope units must not be used in lower scope units applies. If that's the agreed understanding I suggest to add a paragraph mentioning to which scope unit a modulename belongs. ("The identifier of a module or of an imported module belongs to the scope unit of the module and cannot be used as identifier for other definitions inside the module.")

module mb {
  import from ma { type typA }
  import from ma { type typB }

  function plus1() return integer {
    var integer mb := 1;
    return mb;
  }
  
  type boolean ma;
}
No tags attached.
doc CR3381_ModuleName.doc (31,232) 17-08-2008 10:38
http://oldforge.etsi.org/mantis/file_download.php?file_id=1613&type=bug
Issue History
16-05-2008 10:00Thomas DeißNew Issue
16-05-2008 10:00Thomas DeißStatusnew => assigned
16-05-2008 10:00Thomas DeißAssigned To => Ina Schieferdecker
16-05-2008 10:00Thomas DeißClause Reference(s) => 5.2
16-05-2008 10:00Thomas DeißSource (company - Author) => Nokia Siemens Networks, Thomas Deiß
16-05-2008 10:01Thomas DeißProjectTTCN-3 Change Requests => Part 01: TTCN-3 Core Language
17-08-2008 09:35Ina SchieferdeckerTarget Version => Edition 4.1.1 (not yet published)
17-08-2008 10:38Ina SchieferdeckerFile Added: CR3381_ModuleName.doc
17-08-2008 10:39Ina SchieferdeckerNote Added: 0006547
17-08-2008 10:39Ina SchieferdeckerAssigned ToIna Schieferdecker => Thomas Deiß
17-08-2008 10:39Ina SchieferdeckerResolutionopen => fixed
18-08-2008 13:53Thomas DeißNote Added: 0006559
19-08-2008 04:29Thomas DeißAssigned ToThomas Deiß => Ina Schieferdecker
07-10-2008 07:07Ina SchieferdeckerStatusassigned => resolved
07-10-2008 07:07Ina SchieferdeckerStatusresolved => closed
07-10-2008 07:07Ina SchieferdeckerFixed in Version => Edition 4.1.1 (not yet published)

Notes
(0006547)
Ina Schieferdecker   
17-08-2008 10:39   
some rewording
(0006559)
Thomas Deiß   
18-08-2008 13:53   
checked: solution ok.