Page MenuHomeFeedback Tracker

Enscript boolean evaluation parser/compiler bug
Assigned, UrgentPublic

Description

Something is seriously broken with boolean evaluations

bool boolA = !!false;
bool boolB = (!!true != true);
Print(boolA);
Print(boolB);
PrintFormat( "Working Result: %1", boolA == boolB );
PrintFormat( "Broken Result: %1", !!false == (!!true != true) );

The boolean logic separated into variables works as intended.
If the same logic is put into one single statement it's not evaluated correctly.

Output:

SCRIPT       : bool boolA =  0
SCRIPT       : bool boolB =  0
SCRIPT       : Working Result: 1
SCRIPT       : Broken Result: 0

Example of boolean logic causing a compile error:

if( (true&&true) != (false==false) )
{
    Print("Hello");
}

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Additional Information

Please also forward this issue to enfusion team so they can fix this for future titles

Event Timeline

Arkensor created this task.Aug 27 2020, 8:16 PM
Arkensor renamed this task from Enscript parser/compiler bug to Enscript boolean evaluation parser/compiler bug.
Arkensor updated the task description. (Show Details)Aug 27 2020, 9:44 PM
Arkensor added a subscriber: Geez.Sep 11 2020, 12:40 PM

@Geez just in case you overlooked this one :)

Geez changed the task status from New to Assigned.Sep 11 2020, 2:33 PM

@Geez just in case you overlooked this one :)

Thank you, added to the list :)