Ticket #187 (new defect)

Opened 9 years ago

Last modified 9 years ago

Short circuit evaluation for chained comparisons

Reported by: Chuck Owned by:
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:


Like other boolean expressions, chained comparisons should short circuit. That means that subsequent expressions are not even evaluated if not needed.

There is a test case commented out in Tests/320-misc-two/260-chained-comparison.cobra

The original work was on ticket:161 and changeset:2229

Change History

Changed 9 years ago by Chuck

See also: ticket:188

Note: See TracTickets for help on using tickets.