Wake up AmForth-ers :-)

As on all modern hosts it is easy to produce UTF-8 characters wouldn't
it be nice to be able to write something like this:

\ ( X1 X2 .. Xn n -- Sigma )
: Σ  0 swap 0  do  +  loop ;

Interestingly AmForth compiles the above successfully yet it cannot find
these UTF-8 character-strings in its dictionary:

|C|    6|\ ( X1 X2 .. Xn n -- sum )
|S|    7|: Σ  0 swap 0  do  +  loop ;
|W|    8|
|S|    9|10 20 30 3 Σ .
|E=Σ ?? -13 13 

> words
Σ ->test ...

Think how nice would be our programs' new look. 

☹  (frowning face)  throwing some exception
⚑⚐ (black- white- flags) meet the new "false" "true" symbols.

By the way, forth-rc1 does not prohibit such ideas. It writes:

3.1.2.1 "The graphic forms of characters outside the hex range {20
        ... 7E} are implementation defined."

Comments?

Regards, Enoch.

P/S I'm sure that Chuck Moore, Forth inventor, wouldn't mind. He'd
already gone into color-Forth :-)




------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to