Project

General

Profile

Bug #322

True and false not always treated as numeric constants (UPDATED). Also, not all boolean expressions are parsed properly.

Added by Brian Flanagan about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
03/27/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Example: (Assuming a PC manifest where True = 1)

Print True,True=1,Str$(True)
Print False,False=1,Str$(False)
X=True : Y=X+1 : Z=X+2
Print X,Y,Z

Result: (Note the NON-NUMERIC results, and that the boolean operation in the middle is NOT parsed!)
Note also that the only correct results are the 2 and 3 in the third row.

 true    true 1  true
 false   false 0  false
 true    2       3

Result should be (with PC manifest):

 1   1   1
 0   0   0
 1   2   3

Result should be (with Amiga manifest):

-1   0  -1
 0   0   0
-1   0   1

Also available in: Atom PDF