jd
2005-01-21 17:09:26 UTC
Hi,
I am running MacForth 5.2 on a Mac and have very strange things
happening with my arrays. When i create an array and enter a value in
the first cell as follows:
create MyArray 12 allot
221 MyArray !
if i view the content of the first cell the value is right:
MyArray @ .
221
However if i now enter a value in the second cell of the 16 bit array:
230 MyArray 2 + !
and check the content of the first cell again, i obtain 0 : my first
cell has been erased!!
Do i do anything wrong? Can anyone help.
Thanks in advance,
jd
I am running MacForth 5.2 on a Mac and have very strange things
happening with my arrays. When i create an array and enter a value in
the first cell as follows:
create MyArray 12 allot
221 MyArray !
if i view the content of the first cell the value is right:
MyArray @ .
221
However if i now enter a value in the second cell of the 16 bit array:
230 MyArray 2 + !
and check the content of the first cell again, i obtain 0 : my first
cell has been erased!!
Do i do anything wrong? Can anyone help.
Thanks in advance,
jd