ETSI's Bug Tracker - Part 01: TTCN-3 Core Language
View Issue Details

ID | Project | Category | View Status | Date Submitted | Last Update
0005088 | Part 01: TTCN-3 Core Language | Clarification | public | 17-04-2009 11:48 | 06-07-2009 16:56

Reporter | Wolfgang Seka |
Assigned To | Ina Schieferdecker |
Priority | normal | Severity | minor | Reproducibility | have not tried
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version |  |
Target Version | v4.2.1 (published 2010-07) | Fixed in Version | v4.2.1 (published 2010-07) |
Clause Reference(s) | ???
Source (company - Author) |

Summary | 0005088: Clarification: formal parameters are equivalent to local variables

Description

There have been compiler problems when out or inout parameters are directly been forwarded to out or inout parameters of another function:
Instead of
function f_NasEmu_Decvalue(inout bitstring p_EncodedNasMessage,
out NAS_UL_Message_Type p_NAS_UL_Message) return integer {
return decvalue(p_EncodedNasMessage, p_NAS_UL_Message);
}
it was necessary to declare variables and assign the parameters:
...
var bitstring v_EncodedNasMessage := p_EncodedNasMessage;
var NAS_UL_Message_Type v_NAS_UL_Message;
var integer v_Result := decvalue(v_EncodedNasMessage, v_NAS_UL_Message);
p_EncodedNasMessage := v_EncodedNasMessage;
p_NAS_UL_Message := v_NAS_UL_Message;
...
=> There is no explicit statement in the standard to confirm that the short form is allowed

Steps To Reproduce |
Additional Information |
Tags | No tags attached.
Relationships |

Attached Files

CR5088_FormalParameters.doc (64,512) 22-04-2009 14:14
http://oldforge.etsi.org/mantis/file_download.php?file_id=2109&type=bug
CR5088_FormalParameters v2.doc (67,072) 30-06-2009 17:13
http://oldforge.etsi.org/mantis/file_download.php?file_id=2145&type=bug
CR5088_FormalParameters_v3.doc (75,264) 03-07-2009 15:21
http://oldforge.etsi.org/mantis/file_download.php?file_id=2163&type=bug
CR5088_FormalParameters_v4.doc (78,336) 06-07-2009 13:42
http://oldforge.etsi.org/mantis/file_download.php?file_id=2170&type=bug

Issue History
Date Modified | Username | Field | Change
17-04-2009 11:48 | Wolfgang Seka | New Issue |
17-04-2009 11:48 | Wolfgang Seka | Clause Reference(s) | => ???
17-04-2009 11:48 | Wolfgang Seka | Source (company - Author) | =>
20-04-2009 11:13 | Ina Schieferdecker | Project | TTCN-3 Change Requests => Part 01: TTCN-3 Core Language
20-04-2009 11:14 | Ina Schieferdecker | Assigned To | => Tibor CsÃ¶ndes
20-04-2009 11:14 | Ina Schieferdecker | Status | new => assigned
20-04-2009 11:14 | Ina Schieferdecker | Target Version | => Edition 4.2.1 (not yet published)
22-04-2009 14:14 | Tibor CsÃ¶ndes | File Added: CR5088_FormalParameters.doc |
22-04-2009 14:18 | Tibor CsÃ¶ndes | Note Added: 0008537 |
22-04-2009 14:41 | Tibor CsÃ¶ndes | Assigned To | Tibor CsÃ¶ndes => Gyorgy Rethy
30-06-2009 17:13 | Gyorgy Rethy | Note Added: 0008801 |
30-06-2009 17:13 | Gyorgy Rethy | File Added: CR5088_FormalParameters v2.doc |
30-06-2009 17:13 | Gyorgy Rethy | Note Edited: 0008801 |
30-06-2009 17:14 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Tibor CsÃ¶ndes
03-07-2009 15:21 | Tibor CsÃ¶ndes | File Added: CR5088_FormalParameters_v3.doc |
03-07-2009 15:22 | Tibor CsÃ¶ndes | Note Added: 0008835 |
03-07-2009 15:23 | Tibor CsÃ¶ndes | Assigned To | Tibor CsÃ¶ndes => Ina Schieferdecker
06-07-2009 13:41 | Ina Schieferdecker | Note Added: 0008844 |
06-07-2009 13:42 | Ina Schieferdecker | File Added: CR5088_FormalParameters_v4.doc |
06-07-2009 13:42 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => Tibor CsÃ¶ndes
06-07-2009 15:40 | Tibor CsÃ¶ndes | Assigned To | Tibor CsÃ¶ndes => Ina Schieferdecker
06-07-2009 16:55 | Ina Schieferdecker | Resolution | open => fixed
06-07-2009 16:55 | Ina Schieferdecker | Status | assigned => resolved
06-07-2009 16:55 | Ina Schieferdecker | Fixed in Version | => Edition 4.2.1 (not yet published)
06-07-2009 16:56 | Ina Schieferdecker | Status | resolved => closed

Notes

(0008537)
Tibor CsÃ¶ndes
22-04-2009 14:18

As a clarification example included (5.4.1.1.Example 4).

(0008801)
Gyorgy Rethy
30-06-2009 17:13

Some editorial corrections + a question regarding the proposed new restrictions. See CR5088_FormalParameters v2.doc

(0008835)
Tibor CsÃ¶ndes
03-07-2009 15:22

New, v3 uploaded. Comment in v2 is accepted therefore there is no changes in 5.4.1.2.

(0008844)
Ina Schieferdecker
06-07-2009 13:41

Some additional explaination and extension of the example - please check.