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

ID | Project | Category | View Status | Date Submitted | Last Update
0000414 | Part 01: TTCN-3 Core Language | New Feature | public | 24-11-2006 14:31 | 12-03-2008 10:31

Reporter | Stephan Schulz |
Assigned To | Ina Schieferdecker |
Priority | high | Severity | feature | Reproducibility | N/A
Status | closed | Resolution | fixed |
Platform |  | OS |  | OS Version |
Product Version | v3.1.1 (published 2005-06) |
Target Version | v3.3.2 (published 2008-04) | Fixed in Version | v3.3.2 (published 2008-04) |
Clause Reference(s) | -
Source (company - Author) | dr. György Réthy, Ericsson

Summary | 0000414: break and continue in loop constructs

Description

It is often a case that at some condition code execution shall leave a loop, exit from an altstep etc. or, on the contrary, shall continue with the execution of the next cycle. Users may use goto and label-s for this purpose, however this is often a pain that decreases efficiency: often a lots of unique labels shall be maintained, label names are not seen on the screen when the user writes the related goto statement, labels may be unintentionally shifted or after some time, testers are fear to delete labels not used any more etc.

Steps To Reproduce |

Additional Information

Add break operation to the standard; break can be called in bodies of all statements attracting a statement block, i.e. if-else, select case, for, while, do-while, alternatives of alt-s and altsteps. The break statement shall cause that code execution continues with the statement following the statement in which break has been reached. From this point of view select case and if-else are considered to be the statements in which break has been used, i.e. execution continues after the select case closing bracket or after the closing bracket of the if statement block (no else branch), of the else statement block or of the last elseif statement block in an if-elseif..-else chain.
The continue operation, except statement blocks of alt & altstep alternatives, can be used in statement blocks of for, while and do-while sloops. This will cause the re-evaluation of the loop condition and start the next loop if the condition holds.
Precise text proposal to be provided when the technical capabilities are agreed.

Tags | No tags attached.
Relationships |

Attached Files

CR_414_1917_break_continue_interleave_part4.doc (625,152) 19-11-2007 13:53
http://oldforge.etsi.org/mantis/file_download.php?file_id=1122&type=bug
CR_414_1917_break_continue_interleave_part1_02.doc (1,732,096) 26-11-2007 10:20
http://oldforge.etsi.org/mantis/file_download.php?file_id=1156&type=bug
CR_414_1917_break_continue_interleave_part1_Rev1_JG_071204.zip (282,511) 04-12-2007 10:20
http://oldforge.etsi.org/mantis/file_download.php?file_id=1184&type=bug
CR_414_1917_break_continue_interleave_part4_Rev1_JG_071204.zip (129,415) 04-12-2007 10:21
http://oldforge.etsi.org/mantis/file_download.php?file_id=1185&type=bug
CR_414_1917_break_continue_interleave_part1_Rev1_JG_RGy_071205.zip (288,528) 05-12-2007 19:39
http://oldforge.etsi.org/mantis/file_download.php?file_id=1228&type=bug
CR_414_1917_break_continue_interleave_part1_Rev1_JG_RGy_071206.zip (288,656) 06-12-2007 11:17
http://oldforge.etsi.org/mantis/file_download.php?file_id=1231&type=bug
CR_414_1917_break_continue_interleave_part1_Rev2_JG_RGy_JG_071206.zip (291,371) 06-12-2007 12:58
http://oldforge.etsi.org/mantis/file_download.php?file_id=1235&type=bug
CR_414_1917_break_continue_interleave_part4_Rev2_JG_071206.zip (129,457) 06-12-2007 12:59
http://oldforge.etsi.org/mantis/file_download.php?file_id=1236&type=bug

Issue History
Date Modified | Username | Field | Change
24-11-2006 14:31 | Stephan Schulz | New Issue |
24-11-2006 14:31 | Stephan Schulz | Clause Reference(s) | => -
24-11-2006 14:31 | Stephan Schulz | Source (company - Author) | => dr. György Réthy, Ericsson
15-06-2007 19:16 | Stephan Schulz | Status | new => assigned
15-06-2007 19:16 | Stephan Schulz | Assigned To | => Ina Schieferdecker
13-10-2007 19:22 | Ina Schieferdecker | Assigned To | Ina Schieferdecker => developer_u
17-10-2007 12:41 | user10 | Assigned To | developer_u => Thomas DeiÃŸ
18-10-2007 12:11 | Ina Schieferdecker | Target Version | => Edition 3.3.1 (not yet published)
19-11-2007 13:52 | Thomas DeiÃŸ | Note Added: 0004003 |
19-11-2007 13:52 | Thomas DeiÃŸ | Resolution | open => fixed
19-11-2007 13:53 | Thomas DeiÃŸ | File Added: CR_414_1917_break_continue_interleave_part1.doc |
19-11-2007 13:53 | Thomas DeiÃŸ | File Added: CR_414_1917_break_continue_interleave_part4.doc |
19-11-2007 13:54 | Thomas DeiÃŸ | Assigned To | Thomas DeiÃŸ => Gyorgy Rethy
26-11-2007 10:20 | Thomas DeiÃŸ | File Deleted: CR_414_1917_break_continue_interleave_part1.doc |
26-11-2007 10:20 | Thomas DeiÃŸ | File Added: CR_414_1917_break_continue_interleave_part1_02.doc |
26-11-2007 10:21 | Thomas DeiÃŸ | Note Added: 0004088 |
03-12-2007 14:17 | Jens Grabowski | Note Added: 0004231 |
03-12-2007 14:17 | Jens Grabowski | Assigned To | Gyorgy Rethy => Jens Grabowski
04-12-2007 10:20 | Jens Grabowski | File Added: CR_414_1917_break_continue_interleave_part1_Rev1_JG_071204.zip |
04-12-2007 10:21 | Jens Grabowski | File Added: CR_414_1917_break_continue_interleave_part4_Rev1_JG_071204.zip |
04-12-2007 10:23 | Jens Grabowski | Note Added: 0004252 |
04-12-2007 10:23 | Jens Grabowski | Assigned To | Jens Grabowski => Gyorgy Rethy
05-12-2007 18:34 | Gyorgy Rethy | File Added: CR_414_1917_break_continue_interleave_part1_Rev1_JG_RGy_071205.doc |
05-12-2007 18:38 | Gyorgy Rethy | Note Added: 0004356 |
05-12-2007 18:38 | Gyorgy Rethy | Assigned To | Gyorgy Rethy => Jens Grabowski
05-12-2007 18:38 | Gyorgy Rethy | File Deleted: CR_414_1917_break_continue_interleave_part1_Rev1_JG_RGy_071205.doc |
05-12-2007 19:39 | Gyorgy Rethy | File Added: CR_414_1917_break_continue_interleave_part1_Rev1_JG_RGy_071205.zip |
06-12-2007 11:17 | Gyorgy Rethy | File Added: CR_414_1917_break_continue_interleave_part1_Rev1_JG_RGy_071206.zip |
06-12-2007 11:20 | Gyorgy Rethy | Note Added: 0004366 |
06-12-2007 12:58 | Jens Grabowski | File Added: CR_414_1917_break_continue_interleave_part1_Rev2_JG_RGy_JG_071206.zip |
06-12-2007 12:59 | Jens Grabowski | File Added: CR_414_1917_break_continue_interleave_part4_Rev2_JG_071206.zip |
06-12-2007 13:00 | Jens Grabowski | Assigned To | Jens Grabowski => Ina Schieferdecker
06-12-2007 13:00 | Jens Grabowski | Status | assigned => closed
12-03-2008 10:27 | user10 | Target Version | Edition 3.3.1 --will not be published, see 3.3.2 => Edition 3.3.2 (not yet published)
12-03-2008 10:31 | user10 | Fixed in Version | => Edition 3.3.2 (not yet published)

Notes

(0004003)
Thomas DeiÃŸ
19-11-2007 13:52

contains solution for CR1917, affects both part1 and part4

(0004088)
Thomas DeiÃŸ
26-11-2007 10:21

Resolution file for part1 replaced as I missed to add break/continue to two tables.

(0004231)
Jens Grabowski
03-12-2007 14:17

To be crosschecked by Jens and then by GyÃ¶rgy.

(0004252)
Jens Grabowski
04-12-2007 10:23

Crosschecked by Jens and added some modifications already discussed with Thomas (see zip files).

(0004356)
Gyorgy Rethy
05-12-2007 18:38

break - except interleave - should also be allowed in alt statements and altsteps as required by the CR. Text on this is added to the part-1 file, if agreed, should also be added to the OS. Also minor editorial corections in the part-1 file.

(0004366)
Gyorgy Rethy
06-12-2007 11:20

As agreed in the STF discussion, allowing break in altsteps needs further study, hence shifted to next year. File CR_414_1917_break_continue_interleave_part1_Rev1_JG_RGy_071206.zip contains proposed text in which allowing break in altsteps is removed (allowed in loops, alt and interleave)