bugGforth - Bugs: bug #63274, abort 'n' -1 throw behavior

 
 

bug #63274: abort 'n' -1 throw behavior

Submitter:  Stephan Rudlof <hartrock>
Submitted:  Tue 25 Oct 2022 10:34:51 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 30 Oct 2022 11:12:23 PM UTC, comment #2: 

Thanks for info (and link to standard): good that I've ask, if bug or feature ;-)

Stephan Rudlof <hartrock>
Sat 29 Oct 2022 03:07:38 PM UTC, comment #1: 

The standard specifies that ABORT should not display a message <https://forth-standard.org/standard/core/ABORT>, so in Gforth it does not.

Anton Ertl <anton>
Group administrator
Tue 25 Oct 2022 10:34:51 PM UTC, original submission:  

abort (or -1 throw) not seen as error:

sr@rs:~$ gforth
Gforth 0.7.9_20221013
Authors: Anton Ertl, Bernd Paysan, Jens Wilke et al., for more type `authors'
Copyright © 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
Gforth comes with ABSOLUTELY NO WARRANTY; for details type `license'
Type `help' for basic help
: t abort ;  ok
: tf abort" foo" ;  ok
1 tf
*the terminal*:3:3: error: foo
1 >>>tf<<<
Backtrace:
/usr/local/share/gforth/0.7.9_20221013/kernel/basics.fs:287:17:  0 $7FB07BD26790 throw
*terminal*:2:13:                         1 $7FB07BDAD390 c(abort")
\ as expected  ok
1 t \ with or without arg
\ ??? no 'ok': seems to parse further...  ok
.s <0>  ok
\ no stack, too  ok
-1 throw
\ ??? no 'ok': seems to parse further...  ok
.s <0>  ok

Bug or feature?

No info about this behavior found in
  Exception Handling (Gforth Manual)
  https://gforth.org/manual/Exception-Handling.html
:
+++
abort ( ?? – ??  ) core,exception-ext “abort”

-1 throw.
+++

Could be a reason some special handling of
  true throw
?

Stephan Rudlof <hartrock>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by anton (Posted a comment)
  • -email is unavailable- added by hartrock (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-29 anton StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code