Diff for /gforth/except.fs between versions 1.5 and 1.8

version 1.5, 2002/12/05 19:25:23 version 1.8, 2003/11/23 22:02:46
Line 1 Line 1
 \ catch, throw, etc.  \ catch, throw, etc.
   
 \ Copyright (C) 1999,2000 Free Software Foundation, Inc.  \ Copyright (C) 1999,2000,2003 Free Software Foundation, Inc.
   
 \ This file is part of Gforth.  \ This file is part of Gforth.
   
Line 47  Defer store-backtrace Line 47  Defer store-backtrace
   
 : try ( compilation  -- orig ; run-time  -- ) \ gforth  : try ( compilation  -- orig ; run-time  -- ) \ gforth
     \ !! does not work correctly for gforth-native      \ !! does not work correctly for gforth-native
     POSTPONE lit >mark POSTPONE (try) ; immediate compile-only      POSTPONE ahead here >r >mark 1 cs-roll POSTPONE then
       r> POSTPONE literal POSTPONE @ POSTPONE (try) ; immediate compile-only
   
 : (recover) ( -- )  : (recover) ( -- )
     \ normal end of try block: restore handler, forget rest      \ normal end of try block: restore handler, forget rest
Line 81  is catch Line 82  is catch
         [ here forthstart 9 cells + ! ]          [ here forthstart 9 cells + ! ]
         store-backtrace          store-backtrace
         handler @ ?dup-0=-IF          handler @ ?dup-0=-IF
             cr ." uncaught exception: " .error cr              >stderr cr ." uncaught exception: " .error cr
             2 (bye)              2 (bye)
             quit  \           quit
         THEN          THEN
         rp!          rp!
         r> handler !          r> handler !

Removed from v.1.5  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>