Wiki

Ticket #187 (new defect)

Opened 8 years ago

Last modified 8 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:

Description

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 8 years ago by Chuck

See also: ticket:188

Note: See TracTickets for help on using tickets.