Menu

#676 Extend ::OPTIONS .. ERROR to other conditions

5.0.0
closed
Erich
None
none
1
2023-01-01
2016-09-28
Erich
No

::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])

Related

Feature Requests: #656
Feature Requests: #694

Discussion

  • LesK

    LesK - 2016-09-29

    One has to wonder why they weren't included to begin with? Btw: All the settings
    point to 'digits' of the Package class :-(

     
  • John Bodoh

    John Bodoh - 2019-10-30

    I agree with LesK. It should be left up to the ooREXX developer how and when conditions are handled.

     
  • Erich

    Erich - 2019-11-13
    • status: unread --> accepted
    • assigned_to: Erich
    • Pending work items: none --> doc
    • Milestone: None --> 5.0.0
     
  • Erich

    Erich - 2019-11-13

    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]

  • Erich

    Erich - 2020-11-24
    • status: accepted --> pending
    • Pending work items: doc --> none
     
  • Erich

    Erich - 2020-11-24

    Revision [r12133] renames incorrectly-named ::OPTIONS ANY to :OPTIONS ALL
    Adds more tests to OPTIONS test group
    Updates rexxref.

     

    Related

    Commit: [r12133]

  • Erich

    Erich - 2020-11-25

    fix SIGNAL test group with [r12134]

     

    Related

    Commit: [r12134]

  • Rony G. Flatscher

    • Status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel