Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Is there a ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 11 Topic 3850 of 4325
Post > Topic >>

Re: Is there a hole in the SEARCH wordset?

by Josh Grams <josh@[EMAIL PROTECTED] > Mar 11, 2008 at 02:11 PM

Bruce McFarling <agila61@[EMAIL PROTECTED]
> wrote:
>
> But you cannot necessarily *use* SET-ORDER to *bring* FORTH-WORDLIST
> into the search order.
>
> That is, (1) SET-ORDER needs a set of wordlists and a count.
>
> (2) The only wordlist you can guarantee that you know about is FORTH-
> WORDLIST
>
> And (3) ``FORTH-WORDLIST 1 SET-ORDER'' is not guaranteed to work.
>
> FORTH-WORDLIST has to provide the FORTH core when replacing the top of
> the search order stack, but a system is not required to function with
> nothing but FORTH-WORDLIST on the search-order stack. It is within its
> rights to trap that as an error and abort.

How did you get to that conclusion?  A.16 does say that some systems
need pseudo-wordlists in the search order to be able to understand
numeric literals, but you don't need numeric literals to define FORTH
or
ALSO.  So...I may be wrong, but I don't think that a standard system
should treat FORTH-WORDLIST 1 SET-ORDER as an error.

Also I don't see why you would get yourself in that situation in the
first place.  Just define ONLY-FORTH or something, and use that
instead
of -1 SET-ORDER.

: ONLY-FORTH -1 SET-ORDER GET-ORDER FORTH-WORDLIST SWAP 1+ SET-ORDER ;

I can see that the standard might be a bit ambiguous, but I don't see
that it really matters.

Just my two cents,

--Josh
 




 11 Posts in Topic:
Is there a hole in the SEARCH wordset?
Bruce McFarling <agila  2008-03-11 10:49:25 
Re: Is there a hole in the SEARCH wordset?
Josh Grams <josh@[EMAI  2008-03-11 14:11:27 
Re: Is there a hole in the SEARCH wordset?
Bruce McFarling <agila  2008-03-11 14:32:06 
Re: Is there a hole in the SEARCH wordset?
Josh Grams <josh@[EMAI  2008-03-12 05:02:07 
Re: Is there a hole in the SEARCH wordset?
Bruce McFarling <agila  2008-03-12 08:30:09 
Re: Is there a hole in the SEARCH wordset?
anton@[EMAIL PROTECTED]   2008-03-13 11:07:21 
Re: Is there a hole in the SEARCH wordset?
Neal Bridges <quartus  2008-03-12 09:09:39 
Re: Is there a hole in the SEARCH wordset?
Bruce McFarling <agila  2008-03-12 10:07:50 
Re: Is there a hole in the SEARCH wordset?
m_l_g3@[EMAIL PROTECTED]   2008-03-12 10:30:37 
Re: Is there a hole in the SEARCH wordset?
anton@[EMAIL PROTECTED]   2008-03-13 11:10:55 
Re: Is there a hole in the SEARCH wordset?
Bruce McFarling <agila  2008-03-13 05:45:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 15:23:48 CST 2008.