Skip to content

&& || operator not short-circuit as C# did #114

Open
@PingMyCat

Description

@PingMyCat

x = 100;
if( false && (x=50) > 100 )
return 0;
return x;
// --------------------------//
x = 100;
if( true || (x=50) < 0 )
return x;
return 0;

the right part of "&&" "||" are still evaluated

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions