[retroforth] Re: factoring request

  • From: "Helmar Wodtke" <helmwo@xxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Tue, 26 Oct 2004 21:36:04 +0200

-- Attached file included as plaintext by Ecartis --

retroforth@xxxxxxxxxxxxx schrieb am 26.10.04 21:25:17:
> 
> 
> >I expect words that are surrunded by round braces are to  be words that are 
> >used for an internal implementation only and that they should not be used 
> >from outside. This interpretation comes from the ( ... )-comments: the 
> >programmer says something like "Yes, you can see this word in dictionary, 
> >but you can safely ignore this since I used this word for implementing some 
> >strange internals for another word and you do not really need this."
> >  
> >
> In this case, it is used for strange internals. It's not often that you 
> should need to be able to create a word apart from the normal input 
> stream. It's an advanced feature that can be abused in unique ways. :-)
> 
> " a word" (create) here 5 - h0 ! ] words cr cr cr ;
> " a word" find execute

Of couse it can be used to do strange things.
But it's a needed word if you do want to implement something that decides on 
input if the token that was read in is a new entity that needs to be 
represented in dictionary. Foreward-references are always such a kind of thing. 
The mechanism in question would decide by its own if it want to make a new 
dictionary entry or not. In that case the mechanism needs the string from "32 
parse" first to make any decition.

Bis dann,
Helmar
helmwo@xxxxxx


-- Binary/unsupported file stripped by Ecartis --
-- Type: text/x-vCard
-- File: Helmar Wodtke.vcf



-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-pkcs7-signature
-- File: smime.p7s
-- Desc: S/MIME Cryptographic Signature



Other related posts: