在ANS Forth中发生了什么'嘀嗒'?

Leh*_*ehs 3 forth gforth

正如我记得FIG-Forth的'tick',当一个单词不在单词表中时,它可以在没有堕胎的情况下使用:

' the_word 
Run Code Online (Sandbox Code Playgroud)

如果它出现在单词列表中,则引用该单词,否则给出"假".

是否有可能在ANS Forth中构建类似于与[if],[then]和[else]一起使用的东西?

Lar*_*off 6

我猜是这样的:

: tick ( a u -- xt|f ) bl word find 0= if drop 0 then ;
Run Code Online (Sandbox Code Playgroud)