Page 1 of 1

BUG in PLEditor-Compiler? Using Value[offset]?

Posted: Nov 15 2006
by denizen2
I have problem using a value[offset] in an expression such as:

Momentum = (Value1-Value1[offset])*scaleFactor;

The above expression compiles OK, but the results are incorrect, while if I just change to using two separate expressions:

Momentum = Value1-Value1[offset];
Mom = Momentum*ScaleFactor;

Then the results are correct.

Looks like a 'bug' to me :roll: , right?

Posted: Nov 16 2006
by Alex Kramer
could you please send a minimal test script where this can be reproduced?

Posted: Nov 16 2006
by denizen2
could you please send a minimal test script where this can be reproduced?
:oops: I can't seem to duplicate that 'problem' :o anymore.... I withdraw my 'bug' report.... must have made a mistake in my previous code that I was too quick to attribute as a possible compiler bug. I will be more careful next time :oops: !