Ticket #188 (new defect)

Opened 9 years ago

Chained comparisons should be implemented with strong types when possible

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


The implementation of chained comparisons uses the dynamic type even when an expression such as 0 <= i < 9 where i is type int could run at "full native speed" using all ints.

For example, it should be possible to show that the above expression is substantially slower than "0 <= i and i < 9".

See also: ticket:187

Note: See TracTickets for help on using tickets.