我使用了一些 gforth 代码 & 我现在想注册结果
当我尝试:
0 value output
\ some other code
50 testvar !
: test
s" .test" r/w open-file throw fd-out
testvar @ fd-out write-line throw
fd-out write-file throw
fd-out close-file throw
;
我收到内存地址错误
fd-out write-file
:119: Invalid memory address
fd-out >>>write-file<<<
Backtrace:
我参考了官方文档,但我发现根据我设置的变量(可以是文本和数字(两者)),我应该怎么做才能拥有正确的内存地址。