fix bug in variable addressing if they weren't immediately written to
This commit is contained in:
parent
e428c883db
commit
0784661e7c
@ -679,7 +679,7 @@ func (b *Builtins) Variable(c *Context) func(string) error {
|
||||
c.Dictionary.AddWord(string(w), Word{Name: string(w), Variable: next})
|
||||
j, _ := c.RStack.Pop()
|
||||
c.RStack.Push(j + i - 1) // push the end-point onto the stack
|
||||
return nil
|
||||
return c.Memory.Write(next, []int{0})
|
||||
default:
|
||||
w = append(w, next[i])
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user