|
2001-04-04
| ||
| 04:56 | • Ticket [219369ffff] "break when <expression>" command status... artifact: a8907d6498 user: dgp | |
|
2001-03-02
| ||
| 06:20 | • Ticket [219369ffff]: 3 changes artifact: 49e4c204cb user: dgp | |
|
2000-11-13
| ||
| 20:46 | • Closed ticket [219369ffff]. artifact: 747e5a4fab user: dkf | |
|
2000-10-26
| ||
| 05:11 | • New ticket [219369ffff]. artifact: 13007e0abe user: nobody | |
"break when <expression>" command
Closed / Wont Fix219369ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 05:11:44
OriginalBugID: 5983 RFE
Version: 8.3.1
SubmitDate: '2000-07-06'
LastModified: '2000-10-25'
Severity: LOW
Status: UnAssn
Submitter: techsupp
OS: Macintosh
OSVersion: MacOS 9.0.4
Machine: Power Mac G4
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'
Name:
Andy Stark
Extensions:
None
DesiredBehavior:
A "when" option for the "break" command. "Break" seems to be most often used conditionally in loops, so you have to write something like:-
if<...> then {
break
}
A nice shorthand for this would be something like
break when <xxx>
...where xxx is handled like an expression (similar to the way the "if" command handles the expression, without an explicit "expr"). The break only occurs when the expression evaluates to true, similar to the "exit when" command in Ada.
dkfplain2000-11-13 20:46:18
If you want that sort of non-orthogonal cruft, use Perl. You can always use the following code instead:
if {<xxx>} break
dgp Ticket [219369ffff]: 3 changes
[History diff]2001-03-02 06:20:25
dgp Ticket [219369ffff]: 4 changes
[History diff]2001-04-04 04:56:55
Log in (anonymous is fine) to add a comment.