SIGNAL is NOT a GOTO!  It unwinds any active control structures and
executes at the last routine level.  SIGNALing into a structure like trying
to divide by zero. It doesn't make sense.

On Wed, Sep 4, 2024, 13:54 Mike Cowlishaw <m...@speleotrove.com> wrote:

>
> Do we intentionally allow SIGNAL/CALL into IF/DO/LOOP?
>
>
> It is certainly not done intentionally.
>
>
> Not quite true .. in various automatic  or manual translations from BASIC
> to REX it was done intentionally, as that made a translation simpler/truer
> to the original.  (I think SUMER game is an example of that.)
>
> But, I agree, better now to disallow this because it is now practical to
> do this [because nowadays it's possible to pre-parse the whole program
> before starting execution].
>
> Mike
> _______________________________________________
> 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

Reply via email to