RosettaCodeData/Task/Exceptions/Forth/exceptions-1.fth

3 lines
96 B
Forth

: f ( -- ) 1 throw ." f " ; \ will throw a "1"
: g ( -- ) 0 throw ." g " ; \ does not throw