Re: Current Standings: Number Prefixes



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/
.



Relevant Pages

  • Re: Current Standings: Number Prefixes
    ... 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. ...
    (comp.lang.forth)
  • Re: Current Standings: Number Prefixes
    ... prefix and a hex number interpreter prefix opposed to a current base number ... Color isn't a prefix in ColorForth, it's part of the word itself. ... The fundamental idea I see ColorForth promoting is that programmers should create a language (and whole programming environment) that's specific to their needs. ...
    (comp.lang.forth)
  • Re: Current Standings: Number Prefixes
    ... John Passaniti wrote: ... ColorForth, it's part of the word itself. ... flow perspective, it's a prefix. ... Bernd Paysan ...
    (comp.lang.forth)