Group: comp.lang.forth · Group Profile · Search for Square1 in comp.lang.forth
Author: William James
Date: Oct 4, 2007 09:18
...several Forth systems, including at least iForth, bigForth, PFE and Gforth, support the word RECURSIVE, which allows writing the code above as : terraform ( pt1 pt2 pt3 pt4 delta level --) recursive heights! dup if square1 terraform square2 terraform square3 terraform square4 terraform then 3drop 3drop ; So RECURSIVE
|