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

Questions about MultiCharts and user contributed studies.
denizen2
Posts: 125
Joined: Jul 17 2005
Has thanked: 8 times
Been thanked: 1 time

Nov 15 2006

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?

User avatar
Alex Kramer
Posts: 834
Joined: Feb 23 2006

Nov 16 2006

could you please send a minimal test script where this can be reproduced?

denizen2
Posts: 125
Joined: Jul 17 2005
Has thanked: 8 times
Been thanked: 1 time

Nov 16 2006

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: !