www.delorie.com/gnu/docs/gforth/gforth_15.html   search  
 
Buy GNU books!


Gforth Manual

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.3 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.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003