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/ext_ffi_semantics.html | |
parent | f3197046b801b20e28a2b9acc6fb0ee4f51f9f2f (diff) | |
download | luajit2-3a43ea50843e4f6db73b8edf637dfd209ffbe2ab.tar.gz |
FFI: Equality comparisons never raise an error.
Diffstat (limited to 'doc/ext_ffi_semantics.html')
-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 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> |