Map
Index
Random
Help
th

Quote: FORTH defines a word as other words; gives definition of TIMES as in '17 TIMES'

topics > all references > references m-o > QuoteRef: moorCH6_1974 , p. 500 [



Topic:
words defined by words

Note

FORTH execute words by defining a word as other words. eg :TIMES P DO PASS LOOP; use would be 17 TIMES DO takes two numbers from stack (eg 17 0), starts at one and increments to the other. PASS is the word executed 17 times and LOOP forces a branch to the previous DO


Related Topics up

Topic: words defined by words (24 items)

Copyright © 2002-2008 by C. Bradford Barber. All rights reserved.
Thesa is a trademark of C. Bradford Barber.