Type | Wish | Status | waiting | Date | 4-Nov-2010 07:10 |
---|---|---|---|---|---|
Version | alpha 110 | Category | Native | Submitted by | BrianH |
Platform | All | Severity | minor | Priority | normal |
Summary | Remove the QUIT /now option |
---|---|
Description |
We added CATCH/quit to catch the QUIT function in inner scripts (not the top-level script). But then for some reason we decided to make a way to break through that: the /now option. But we still need to catch that, for the same reason. This is an arms race, and needs to stop. We don't need to break through CATCH/quit with QUIT. CATCH/quit needs to catch QUIT, period. This was originally suggested by Ladislav, and is necessary for the purposes of testing. See also #1742 for the HALT equivalent of CATCH/quit. |
Example code |
Assigned to | n/a | Fixed in | - | Last Update | 5-Nov-2010 00:03 |
---|
Comments | |
---|---|
(0002782)
BrianH 4-Nov-2010 07:10 |
If we are having trouble with CATCH/quit being called when it shouldn't be (#1734), it should be fixed. If we are having trouble using CATCH/quit in a TRY block (#851), it should be fixed. If we are having trouble using THROW/name as a replacement for QUIT/now to break through CATCH/quit (#1518, #1520, #1744), it should be fixed. But we don't need QUIT to break through CATCH/quit. |
(0002784)
Ladislav 4-Nov-2010 09:12 |
Brian formulated it nicely. |
(0002795)
abolka 4-Nov-2010 22:32 |
Agreed.
In the comments to #1734 Carl mentioned the possible existence of documented history for this additional option, and I would certainly be interested in that. Without that documentation, the only use I can _currently_ imagine for QUIT/now is to signal the desire of a more "urgent" quit. However, for this to work consistently, wrapper and wrappee would have to agree on this desired meaning and therefore cooperate. But for cooperating scripts, an agreed-upon throw would suffice as well (as Brian mentioned). |
(0002798)
Carl 5-Nov-2010 00:03 |
This needs serious discussion. Posting to blog.
|
Date | User | Field | Action | Change |
---|---|---|---|---|
5-Nov-2010 00:03 | carl | Comment : 0002798 | Added | - |
4-Nov-2010 23:59 | carl | Status | Modified | submitted => waiting |
4-Nov-2010 22:32 | abolka | Comment : 0002795 | Added | - |
4-Nov-2010 09:22 | BrianH | Description | Modified | - |
4-Nov-2010 09:12 | Ladislav | Comment : 0002784 | Added | - |
4-Nov-2010 07:49 | BrianH | Comment : 0002782 | Modified | - |
4-Nov-2010 07:11 | BrianH | Description | Modified | - |
4-Nov-2010 07:10 | BrianH | Comment : 0002782 | Added | - |
4-Nov-2010 07:10 | BrianH | Ticket | Added | - |