Comment detail

メソッドのフック (Nested Flatten)

Forth にはメソッドはないのですが、再定義前のワードを使えるのでこんな感じでしょうか。

before
primary
after

と出力されます。再帰するわけではありません。

1
2
3
: f ." primary" cr ;
: f ." before" cr f ;
: f f ." after" cr ;

Index

Feed

Other

Link

Pathtraq

loading...