Re: aus and chars (was: CMOVE wrong?)
- From: anton@xxxxxxxxxxxxxxxxxxxxxxxxxx (Anton Ertl)
- Date: Tue, 06 Mar 2007 12:32:47 GMT
Albert van der Horst <albert@xxxxxxxxxxxxxxxxxx> writes:
In article <2007Mar4.225908@xxxxxxxxxxxxxxxxxxxxxxxxxx>,[someone wrote:]
Anton Ertl <anton@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
There is a weaker version of 1 CHARS = 1 that I thought of.
Admit that characters visible to the users are 1 CHARS.
What's that supposed to mean?
A character visible to the user is what is printed or read.
This need not be the characters internally in a Forth.
I fail to see how this all is supposed to fit together.
I have the first problem with the "admit" sentence. In Forth-94 the
printable characters have the values 32-126, and they do fit into 1
CHARS of memory. So what is this "admit" supposed to mean? And what
are "characters internally in a Forth"?
Now for the complication you desire: If you want to deal with bytes,
you have a byte-addressed machine. On such a machine, 1 au = 1 byte,
so no need to worry about an additional level.
There are hardly any words that deal with au in Forth.
Given 1 CHARS = 1, which was the start of this subthread, you have C@,
C!, etc. for dealing with aus.
- 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:
- aus and chars (was: CMOVE wrong?)
- From: Anton Ertl
- Re: aus and chars (was: CMOVE wrong?)
- From: Albert van der Horst
- Re: aus and chars (was: CMOVE wrong?)
- From: Anton Ertl
- Re: aus and chars (was: CMOVE wrong?)
- From: Albert van der Horst
- aus and chars (was: CMOVE wrong?)
- Prev by Date: Re: aus and chars (was: CMOVE wrong?)
- Next by Date: Re: aus and chars (was: CMOVE wrong?)
- Previous by thread: Re: aus and chars (was: CMOVE wrong?)
- Next by thread: Re: CMOVE wrong?
- Index(es):
Relevant Pages
|