It all depends on whether the bit of code where the halt condition is
detected has SIGNAL ON HALT enabled or not. The Monitor class UNKNOWN
method is not one of those locations, so the HALT condition gets turned
into an error because it was not handled.

Rick

On Wed, Nov 6, 2019 at 3:11 PM P.O. Jonsson <oor...@jonases.se> wrote:

> Adding signal on halt only helps every now and then, most of the time I
> get the same error message, maybe the loop is too tight?
>
> Hello
> /bin/sh: YOU: command not found
>      6 *-* You pressed halt
>        >>>   "YOU PRESSED HALT"
>        +++   "RC(127)"
>
> Most of the time I still get this:
>
> ^CHello
>    355 *-* Method SAY with scope "Stream" in package "REXX" (no source
> available).
>   1411 *-* Method UNKNOWN with scope "Monitor" in package "REXX" (no
> source available).
>      3 *-*   say 'Hello'
> Error 4 running REXX line 355:  Program interrupted.
> Error 4.1:  Program interrupted with HALT condition.
>
> Shall I understand that the „UNKNOWN“ method is the one I am supposed to
> add (halt: label and the code handling the condition)?
>
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se
>
>
>
> Am 06.11.2019 um 21:02 schrieb P.O. Jonsson <oor...@jonases.se>:
>
> I did not mean the actual (expected) outcome of pressing break, I meant
> this error message:
>
> Method UNKNOWN with scope "Monitor" in package "REXX" (no source available)
>
>
> What source is not available?
> How shall I understand the scope „Monitor“ of an unknown method?
>
> Where can I read up on this things?
>
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se
>
>
>
> Am 06.11.2019 um 20:42 schrieb Walter Pachl <pa...@chello.at>:
>
> Sure
>
> Try Signal On Halt
> DO WHILE 1>0
> say 'Hello'
> END
> halt: Say 'you decided to end the loop'
> Say 'Good bye'
>
> "P.O. Jonsson" <oor...@jonases.se> hat am 6. November 2019 um 19:42
> geschrieben:
>
> Hi,
>
> I got this error message when pressing <ctrl> C  on a program running and
> getting stuck in a loop. I have enclosed a simpler example.
>
>    361 *-* Method SAY with scope "Stream" in package "REXX" (no source
> available).
>   1448 *-* Method UNKNOWN with scope "Monitor" in package "REXX" (no
> source available).
>      2 *-*   say 'Hello'
> Error 4 running REXX line 361:  Program interrupted.
> Error 4.1:  Program interrupted with HALT condition.
>
> Is this expected behavior when pressing <CTRL> C?
>
> I am running Open Object Rexx Version 5.0.0  r11935 on a Mac with macOS
> Mojave. I build with this command
>
> cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=RELWITHDEBINFO
> -DCMAKE_INSTALL_PREFIX=~/Applications/ooRexx5 ../oorexxSVN
>
> Just wondering.
>
>
>
>
>
>
>
>
> Hälsningar/Regards/Grüsse,
> P.O. Jonsson
> oor...@jonases.se
>
>
>
> _______________________________________________
> Oorexx-devel mailing list
> Oorexx-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-devel
>
>
>
>
>
> LG
>
> Walter
> _______________________________________________
> 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
>
>
> _______________________________________________
> 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