As of a few moments ago I checked in the code, the documentation and the 
necessary tests.

This way the Jenkins builds will get the proper documentation and the new tests get carried out on all operating systems Jenkins creates ooRexx for.

Synopsis: if someone writes routines and methods in a program/package that should inherit the numeric settings of the callers, this can be now enabled by placing a "::OPTIONS NUMERIC INHERIT" directive into that program/package. The default is the current behaviour (so no surprises possible, the author of a program/package controls this feature) and can be explicitly stated with "::OPTIONS NUMERIC NOINHERIT".

---rony



On 25.10.2025 11:54, Rony G. Flatscher wrote:
On 23.10.2025 12:00, Rony Flatscher via groups.io wrote:

Suggesting to implement RFE 860: <https://sourceforge.net/p/oorexx/feature-requests/860/>. Here the text:

    Jean Louis Faucher (JLF) has posted a very interesting idea on the RexxLA 
member's list about
    propagating numeric settings to invoked routines and methods using a new 
"::options"
    directive option.

    He pointed at the motivation and how one can implement this (coming from 
his experimental
    version named "executor", based on ooRexx 4.2):

     *

        Motivation and explanations:
        
https://github.com/jlfaucher/executor/blob/master/sandbox/jlf/_changes.md#6numeric-digits-propagate

     *

        Implemenation diff:
        
https://github.com/jlfaucher/executor/commit/e81877a2e1bb81420007087ed0584f7ed57034a6

    JLF's implementation uses "::options digits propagate 30", but implies to 
propagate all
    numeric settings to the called routine and method. Josep Maria Blasco (JMB) 
suggested to name
    this "::options numeric settings propagate", also "::options numeric 
propagate" got suggested.

What do you think? Any comments?

Thank you all for your comments!

How about then an option named "numeric" with the values "inherit" or "noinherit" ("::options numeric inherit" (and "noinherit"))?

This allows the programmer who writes the routines and methods in a program/package to state that these are able to take on the numeric settings of the caller. The default is "numeric noinherit", such tat no caller can force its numeric settings on the callee (as is the case now).

Will come up with such an implementation later today such that it can be tested.

---rony


_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to