On Wed, Sep 4, 2024 at 11:28 AM Erich Steinböck <erich.steinbo...@gmail.com> wrote:
> We currently have two open bug reports [bugs:#1945] and [bugs:#1946] > related to SIGNAL into IF/SELECT/DO/LOOP groups. > While ANSI requires Rexx to issue 16.2/16.3 "Cannot SIGNAL/CALL to label > inside an IF/SELECT/DO group" for any SIGNAL or CALL into such a group, we > currently allow code like this to work (both for SIGNAL and CALL): > > `signal a; if 1 then say 1; a: else say 2` or > `call w; select; w: when 1 then do; say 1; signal x; end; end; x:` > > We have no 16.2/16.3, and only the SELECT/WHEN/OTHERWISE instructions show > some code comments like "It really isn't possible to jump into a middle of > a select and get to a WHEN without raising an error", but mostly our code > will allow to SIGNAL/CALL to clauses in groups. > > Do we intentionally allow SIGNAL/CALL into IF/DO/LOOP? > It is certainly not done intentionally. > Should SIGNAL/CALL into any group be disallowed like ANSI requires? > I believe it should be disallowed. > _______________________________________________ > Oorexx-devel mailing list > Oorexx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-devel >
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel