16.6.1.1647 GET-ORDER SEARCH
( -- widn ... wid1 n )
Returns the number of word lists n in the search order and the word list identifiers widn ... wid1 identifying these word lists. wid1 identifies the word list that is searched first, and widn the word list that is searched last. The search order is unaffected.
Implementation:
Here is a very simple search order implementation:
VARIABLE #order
CREATE context 16 ( wordlists ) CELLS ALLOT
: GET-ORDER ( -- wid1 ... widn n )
#order @ 0 ?DO
#order @ I - 1- CELLS context + @
LOOP
#order @
;