home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.forth
- Path: sparky!uunet!das.wang.com!wang!news
- From: jacobsen@itexjct.jct.ac.il (Joel Jacobsen)
- Subject: Implementing Algolic algorithms in Forth ?
- Organization: ITEX, Jerusalem, Israel
- Date: Tue, 29 Dec 1992 15:54:16 GMT
- Message-ID: <2498@itexjct.jct.ac.il>
- Sender: news@wang.com
- Lines: 12
-
- May the Forth wizards help me with that:
-
- I want to implement som 'Algolic languages' algorithms. Let's take
- the Quick Sort algorithm as an example. In that algorithm the programmer
- must call the sort function (word, procedure etc.) recursivly, with
- sub-array of the array it got as input.
- As far as I know, recursion in Forth mean: the ablity of word to use
- itself. It is working in those cases when the word use only the stack,
- like a recursive definition of factorial. How may I write a definition
- like the quick sort one, in Forth.
-
- Joel
-