jsforth
jsforth copied to clipboard
word . not working well
Try this code, it is not working (Firefox 52):
42 FOO .
and will print <ok>
instead of 84 <ok>
while this code works:
42 FOO
.
and will print 84 <ok>
With the same idea:
42 FOO . .
will not produce a stack underflow.
Still the same idea:
42 DUP . .
will only consume and display 1 element
Hey, I know this issue is 4 years old, but I think the pull request I just submitted would fix this problem. . works just fine in 0.2. check it out.