unary operator in IF or WHEN statement isn't handled correctly
Brought to you by:
rexx
Using a unary operator in an IF statement fails with a syntax error at line 61 (in the attached REXX program) with: Error 34 running "c:\unary.rex", line 61: Logical value not "0" or "1" Line 61 is: 61 +++ if (-0) then say 'yes' This fails with all Regina REXXes from 3.2 to 3.9.3 inclusive. Numerous other REXX process the attached program without errors. In the Regina PDF document, under 2.5 Operators and under 2.5.1 Arithmetic Operators - Unary prefix. Same as 0 - number. + Unary prefix. Same as 0 + number. ______________________________ Gerard Schildberger
This has been fixed in my working copy.
This has been fixed in my working copy.