Buzz McCool
2024-03-21 21:06:14 UTC
I use gforth in a terminal window to type in some quick conversions
between decimal and hexadecimal numbers. After a recent upgrade to a new
gforth version I see:
$ gforth
Gforth 0.7.9_20240104
$ff ok 1
. 255 ok
255 ok 1
hex.
*terminal*:4:1: warning: hex. is obsolete$FF ok
What am I supposed to be using in place of "hex." to display a number in
hexadecimal? I see some recommendations like "Don’t use hex, use
base-execute instead." in the manual, but I don't understand what that
is trying to tell me. Is there a tutorial on new style gforth number
base conversions somewhere, preferably with lots of examples?
Note that when using a search engine to research this issue, the first
hits that come up are from this site with a very old manual:
https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/
which says "This manual is for Gforth (version 0.7.0, November 2, 2008)".
Further down in the list of search engine suggestions is a recent manual
version https://gforth.org/manual/index.html which says "This manual is
for Gforth (version 0.7.9_20240229, February 29, 2024)".
between decimal and hexadecimal numbers. After a recent upgrade to a new
gforth version I see:
$ gforth
Gforth 0.7.9_20240104
$ff ok 1
. 255 ok
255 ok 1
hex.
*terminal*:4:1: warning: hex. is obsolete$FF ok
What am I supposed to be using in place of "hex." to display a number in
hexadecimal? I see some recommendations like "Don’t use hex, use
base-execute instead." in the manual, but I don't understand what that
is trying to tell me. Is there a tutorial on new style gforth number
base conversions somewhere, preferably with lots of examples?
Note that when using a search engine to research this issue, the first
hits that come up are from this site with a very old manual:
https://www.complang.tuwien.ac.at/forth/gforth/Docs-html/
which says "This manual is for Gforth (version 0.7.0, November 2, 2008)".
Further down in the list of search engine suggestions is a recent manual
version https://gforth.org/manual/index.html which says "This manual is
for Gforth (version 0.7.9_20240229, February 29, 2024)".