Re: Current Standings: Number Prefixes
- From: anton@xxxxxxxxxxxxxxxxxxxxxxxxxx (Anton Ertl)
- Date: Mon, 27 Aug 2007 18:54:12 GMT
John Passaniti <put-my-first-name-here@xxxxxxxxxxxxxxxxx> writes:
Bernd Paysan wrote:
- Fourth, I'm sure Chuck doesn't like it ;-)
Chuck does something similar in ColorForth. There, hex numbers have a
different color as decimal numbers.
You're viewing the hex color as just a prefix. But in ColorForth, color
is more about switching to a different interpreter for the word.
I don't see this as a contradiction. You can also see the number
prefix as switching to a different interpreter for the word (sounds
like Albert van der Horst's denominations). Of course, before that,
you have the regular Forth word-finding and after that the regular
Forth number conversion, but then standard Forth is not colorForth.
Getting back to ColorForth, IIRC in the marshalled version of the
ColorForth code the colour is a prefix to the text of the word. And
in the pure-ASCII colorForth-inspired variant I did, I replaced the
colour with a prefix character ('[' for execute (i.e., immediate words
or interpret mode), '_' for compile (i.e., regular words), ']' for
postpone).
- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2007: http://www.complang.tuwien.ac.at/anton/euroforth2007/
.
- References:
- Current Standings: Number Prefixes
- From: Anton Ertl
- Re: Current Standings: Number Prefixes
- From: The Beez'
- Re: Current Standings: Number Prefixes
- From: Krishna Myneni
- Re: Current Standings: Number Prefixes
- From: The Beez'
- Re: Current Standings: Number Prefixes
- From: Bernd Paysan
- Re: Current Standings: Number Prefixes
- From: John Passaniti
- Current Standings: Number Prefixes
- Prev by Date: Re: Current Standings: Number Prefixes
- Next by Date: Re: New version of John Hayes' tester
- Previous by thread: Re: Current Standings: Number Prefixes
- Next by thread: Re: Current Standings: Number Prefixes
- Index(es):
Relevant Pages
|