Node:Crash Course Tutorial, Next:, Previous:Syntax Tutorial, Up:Tutorial



Crash Course

Type

0 0 !
here execute
' catch >body 20 erase abort
' (quit) >body 20 erase

The last two examples are guaranteed to destroy parts of Gforth (and most other systems), so you better leave Gforth afterwards (if it has not finished by itself). On some systems you may have to kill gforth from outside (e.g., in Unix with kill).

Now that you know how to produce crashes (and that there's not much to them), let's learn how to produce meaningful programs.