Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!rutgers!topaz.rutgers.edu!jrusso
From: jrusso@topaz.rutgers.edu (Jim Russo star@gold)
Newsgroups: comp.lang.forth
Subject: Re: Forth and recursion
Message-ID: <13517@topaz.rutgers.edu>
Date: Fri, 24-Jul-87 17:29:39 EDT
Article-I.D.: topaz.13517
Posted: Fri Jul 24 17:29:39 1987
Date-Received: Sat, 25-Jul-87 15:23:35 EDT
References: <1644@xanth.UUCP> <19842@ucbvax.BERKELEY.EDU>
Reply-To: jrusso@topaz.rutgers.edu (Jim Russo star@gold)
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 16


   Why go to all that trouble to do self recursion? According to
the books I learned forth from, you use SELF, which compiles
a reference to the word into itself. 

   Ex:

  : fact ( num -- num! )
     dup 1 = if
     else
        1- self * ;

         
CROSSPOSTED by Jrusso@topaz