| |
|
| : 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 |