Difference between "->" and "-->" in array access?

Hi all,

Can someone give me a quick hint what the difference is between accessing the elements of array “my_array” in the style of “my_array->x”, and “my_array–>x”, resp?

Using “->” gives me compiler warnings (“Using ‘->’ to access a --> or table array”), but seems to work fine, the other spits out lots of runtime errors.

I’ve got a hunch one is accessing the variable contents, the other the addresses – but how do I make the warnings go away?

Thanks a lot, and sorry it it’s been asked. I couldn’t find anything helpful in DM4 nor at Roger Firth’s pages.

syzygy

The difference is explained somewhat obscurely in the DM4 (bottom of p. 42):

If the array is defined with -> (or “string”), access it with ->. If it’s defined with --> (or “table”), access it with -->.

(The parser breaks these rules for its internal buffer array. Don’t follow its example.)

Ah, I had completely misread that paragraph…

Thanks for clearing things up for me, now it works fine!

Cheers,

syzygy