diff options
author | Mike Pall <mike> | 2012-05-23 22:19:05 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-05-23 22:20:27 +0200 |
commit | 3a43ea50843e4f6db73b8edf637dfd209ffbe2ab (patch) | |
tree | d939ba39e95c0463fd12bad5963a0b50564a47a5 /doc | |
parent | f3197046b801b20e28a2b9acc6fb0ee4f51f9f2f (diff) | |
download | luajit-3a43ea50843e4f6db73b8edf637dfd209ffbe2ab.tar.gz luajit-3a43ea50843e4f6db73b8edf637dfd209ffbe2ab.tar.bz2 luajit-3a43ea50843e4f6db73b8edf637dfd209ffbe2ab.zip |
FFI: Equality comparisons never raise an error.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ext_ffi_semantics.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/ext_ffi_semantics.html b/doc/ext_ffi_semantics.html index 2dbe41e9..304befa7 100644 --- a/doc/ext_ffi_semantics.html +++ b/doc/ext_ffi_semantics.html | |||
@@ -724,6 +724,11 @@ of them is an <tt>uint64_t</tt>, the other side is converted to an | |||
724 | both sides are converted to an <tt>int64_t</tt> and a signed | 724 | both sides are converted to an <tt>int64_t</tt> and a signed |
725 | comparison is performed.</li> | 725 | comparison is performed.</li> |
726 | 726 | ||
727 | <li><b>Comparisons for equality/inequality</b> never raise an error. | ||
728 | Even incompatible pointers can be compared for equality by address. Any | ||
729 | other incompatible comparison (also with non-cdata objects) treats the | ||
730 | two sides as unequal.</li> | ||
731 | |||
727 | </ul> | 732 | </ul> |
728 | 733 | ||
729 | <h3 id="cdata_key">cdata objects as table keys</h3> | 734 | <h3 id="cdata_key">cdata objects as table keys</h3> |