::OPTIONS NOVALUE ERROR is of great help during debugging. It would be nice if ::OPTIONS .. ERROR could be extended to other conditions like LOSTDIGITS, NOMETHOD, NOSTRING, or even ANY.
(see related [feature-requests:#656])
Feature Requests: #656
Feature Requests: #694
Anonymous
One has to wonder why they weren't included to begin with? Btw: All the settings
point to 'digits' of the Package class :-(
I agree with LesK. It should be left up to the ooREXX developer how and when conditions are handled.
Revision [r11937] adds new ::OPTIONS condition subkeywords for ERROR, FAILURE, LOSTDIGITS, NOSTRING, NOTREADY, and ANY.
It changes the secondary subkeyword ERROR to SYNTAX to better reflect that these directives raise a SYNTAX error when set.
Otherwise it closely follows OPTIONS NOVALUE by allowing SIGNAL/CALL overrides and like NOVALUE it doesn't raise SYNTAX if the condition is raised through a RAISE instruction.
ANY enables all of above named conditions plus NOVALUE. Overriding OPTIONS is possible with e. g. ::OPTIONS ANY SYNTAX NOSTRING CONDITION (i. e. all conditions except NOSTRING will raise SYNTAX)
There is no ::OPTIONS NOMETHOD or HALT as these already raise SYNTAX when unhandled.
Related
Commit: [r11937]
Revision [r12133] renames incorrectly-named ::OPTIONS ANY to :OPTIONS ALL
Adds more tests to OPTIONS test group
Updates rexxref.
Related
Commit: [r12133]
fix SIGNAL test group with [r12134]
Related
Commit: [r12134]