aboutsummaryrefslogtreecommitdiff
path: root/amforth-6.5/examples/forward-declarations-test.frt
blob: b44ce94ea5d111929abb70c1f5500af0804e2a7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
forward: foo

: bar foo ;
: baz foo ;

bar \ should cause an error: foo not bound, or (simpler) silently crash

: foo ." I'm foo the first" ;
bar \ should execute the does> part of forward: for foo
: foo ." I'm the second foo" ;
baz \ uses the new definition of foo!