X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=scheme.forth.jl.git;a=blobdiff_plain;f=scheme.4th;h=bacd8e062b2b1483d58dfcdeefad12f25ebc29c1;hp=f2d73753fd5d5884e70cddc33e8d065a0327832e;hb=e0ca5b6fd7381323cb9737f0ca6bfec9ede3eb7d;hpb=988c879292acffbbf86367601c41ad7c010ff160 diff --git a/scheme.4th b/scheme.4th index f2d7375..bacd8e0 100644 --- a/scheme.4th +++ b/scheme.4th @@ -52,7 +52,7 @@ variable nextexception make-exception recoverable-exception make-exception unrecoverable-exception -: display-warning ( addr count -- ) +: display-exception-msg ( addr count -- ) bold fg red ." Exception: " type @@ -65,7 +65,7 @@ make-exception unrecoverable-exception [compile] if ['] -rot , - ['] display-warning , + ['] display-exception-msg , [compile] then ['] throw , @@ -1709,11 +1709,7 @@ variable gc-stack-depth recoverable-exception of false endof unrecoverable-exception of true endof - \ Rethrow anything else: - throw - - \ If we're still here, loop again - false + throw false endcase until ;