FFI: Equality comparisons never raise an error.

This commit is contained in:
Mike Pall
2012-05-23 22:19:05 +02:00
parent f3197046b8
commit 3a43ea5084
3 changed files with 19 additions and 6 deletions

View File

@@ -724,6 +724,11 @@ of them is an <tt>uint64_t</tt>, the other side is converted to an
both sides are converted to an <tt>int64_t</tt> and a signed
comparison is performed.</li>
<li><b>Comparisons for equality/inequality</b> never raise an error.
Even incompatible pointers can be compared for equality by address. Any
other incompatible comparison (also with non-cdata objects) treats the
two sides as unequal.</li>
</ul>
<h3 id="cdata_key">cdata objects as table keys</h3>