home .. forth .. colorforth mail list archive ..

Re: [colorforth] new color



--- Mark Slicker <maslicke@xxxxxxxxxxx> wrote:

> Adding a new color is not difficult. Adding a word
> which parses would be a 
> bit clusmy in colorForth, besides colorForth has no
> character ' .

Well it would be difficult for me. :) But I see
your point WRT parsing words.
 
> The effect of a magenta defined word, when executed
> is to return an 
> address in source, orange would return the address
> of the defintion.

I think I understand.  
 
> I'm not familer with the other 'defer', I copied
> this from Chuck. The 
> name makes sense as is by the fact the execution of
> the rest of word is 
> defered when 'defer' is executed.

The other defer works like this.

defer foo

: hi ." Hi there" ;
: goodbye ." See you later" ;

' hi is foo
foo
Hi There
' goodbye is foo
foo
See you later

Anyway, I get what you're doing now.  With defer
in a word it's address pushed from the return
stack to the parameter stack so you can store
it in the jump table rather than execute it.
But here's what I don't get now.  What keeps
"defer" from executing the second time when
the address is executed from the jump table?

Regards,

John M. Drake



		
__________________________________ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

---------------------------------------------------------------------
To unsubscribe, e-mail: colorforth-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: colorforth-help@xxxxxxxxxxxxxxxxxx
Main web page - http://www.colorforth.com