aboutsummaryrefslogtreecommitdiff
path: root/doc/ext_ffi_semantics.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/ext_ffi_semantics.html')
-rw-r--r--doc/ext_ffi_semantics.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/ext_ffi_semantics.html b/doc/ext_ffi_semantics.html
index 5415787d..7c4f0d1d 100644
--- a/doc/ext_ffi_semantics.html
+++ b/doc/ext_ffi_semantics.html
@@ -672,7 +672,7 @@ through unions is explicitly detected and allowed.
672<a href="ext_ffi_api.html#ffi_new">constructor</a>. This is equivalent 672<a href="ext_ffi_api.html#ffi_new">constructor</a>. This is equivalent
673to <tt>ffi.new(ct, ...)</tt>, unless a <tt>__new</tt> metamethod is 673to <tt>ffi.new(ct, ...)</tt>, unless a <tt>__new</tt> metamethod is
674defined. The <tt>__new</tt> metamethod is called with the ctype object 674defined. The <tt>__new</tt> metamethod is called with the ctype object
675plus any other arguments passed to the contructor. Note that you have to 675plus any other arguments passed to the constructor. Note that you have to
676use <tt>ffi.new</tt> inside of it, since calling <tt>ct(...)</tt> would 676use <tt>ffi.new</tt> inside of it, since calling <tt>ct(...)</tt> would
677cause infinite recursion.</li> 677cause infinite recursion.</li>
678 678
@@ -858,7 +858,7 @@ place of a type, you'd need to use <tt>ffi.typeof("int")</tt> instead.
858<p> 858<p>
859The main use for parameterized types are libraries implementing abstract 859The main use for parameterized types are libraries implementing abstract
860data types 860data types
861(<a href="https://www.freelists.org/post/luajit/ffi-type-of-pointer-to,8">example</a>), 861(<a href="https://www.freelists.org/post/luajit/ffi-type-of-pointer-to,8"><span class="ext">&raquo;</span>&nbsp;example</a>),
862similar to what can be achieved with C++ template metaprogramming. 862similar to what can be achieved with C++ template metaprogramming.
863Another use case are derived types of anonymous structs, which avoids 863Another use case are derived types of anonymous structs, which avoids
864pollution of the global struct namespace. 864pollution of the global struct namespace.