On 8/23/2016 4:58 PM, Ronald van der Laan wrote:
> You're doing string compares, so "-0......" is less than "-1".

>> pipe '  (end ?) < ' filename filetype filemode,
>>      '| pick w2  <= /-1/ ',

No, he's using the newer numerical comparison operator "<=", not the
string comparison operator "<<=".

Looks like this problem's been there from the start.  I see it in the
oldest level I have saved with this syntax, 110B0016, and in the latest
version in test.  The comparison comes out backwards when the first
number is between -1 and -0 and the second is -1 or less:

pipe literal -0.3 -1.2|literal -0.3 -0.9|pick w1 < w2|cons
-0.3 -1.2
Ready;

pipe literal -0.3 -1.2|literal -0.3 -0.9|pick w1 > w2|cons
-0.3 -0.9
Ready;

pipe literal -0.3 -1.2|literal -0.3 -0.9|pick w2 < w1|cons
-0.3 -0.9
-0.3 -1.2
Ready;

pipe literal -0.3 -1.2|literal -0.3 -0.9|pick w2 > w1|cons
Ready;

(I can't help thinking this must have some esoteric connection to the
mixture of zero-based and one-based numbering of streams in the doc.)

¬R

Reply via email to