<div class="gmail_quote">On Tue, Feb 10, 2009 at 10:24 AM, Cesare Di Mauro <span dir="ltr">&lt;<a href="mailto:cesare.dimauro@a-tono.com" target="_blank">cesare.dimauro@a-tono.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Could it be applyable to other operations as well? So, if I wrote:<br>
 &nbsp;c = not(a &lt; b)<br>
the compiler and/or peephole optimizer can generate bytecodes instructions which, instead, execute the following operation:<br>
 &nbsp;c = a &gt;= b<br>
</blockquote></div><br>Those two expressions are equivalent for integers, but not necessarily equivalent for objects that define their own comparison operator.<br><blockquote style="margin: 1.5em 0pt;">--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</blockquote>