I'm trying to compile a 4tH source that begins as follows, but the "0"
at the beginning of the line "0 CONSTANT au-idx ..." triggers the error
"Word 0: Undefined name".
========== The source ==========
\ YUKO.4TH - YUnit KOnverter library for 4tH
\ Programmer: David Meyer <
pa...@sdf.org> +JMJ
\ Date created: July 23, 2026
\ Language: 4tH v3.64
\ Source computer: Dell Optiplex 7010/Devuan Excalibur 6 "boxy"
\ Based on yuko3.fs by David Meyer.
\ All non-SI/metric units are US customary units.
\ Constants -- unit table indices
0 CONSTANT au-idx \ Astronomical unit [astronomical]
1 CONSTANT cup-idx \ Cup [volume]
2 CONSTANT ft-idx \ Foot [length]
3 CONSTANT floz-idx \ Fluid ounce [volume]
...
========== End source ==========
However, the following source compiles without errors:
========== The other source ==========
\ This is a comment
0 CONSTANT my-const
: test my-const . cr ;
========== End other source ==========
What am I doing wrong?
--
David Meyer
Takarazuka, Japan
pa...@sdf.org