diff options
Diffstat (limited to 'doc/ext_ffi_api.html')
-rw-r--r-- | doc/ext_ffi_api.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html index 687b85c5..962db6dc 100644 --- a/doc/ext_ffi_api.html +++ b/doc/ext_ffi_api.html @@ -117,7 +117,7 @@ separated by semicolons. The trailing semicolon for a single declaration may be omitted. </p> <p> -Please note that external symbols are only <em>declared</em>, but they +Please note, that external symbols are only <em>declared</em>, but they are <em>not bound</em> to any specific address, yet. Binding is achieved with C library namespaces (see below). </p> @@ -205,7 +205,7 @@ parse the cdecl only once and get its ctype with <tt>ffi.typeof()</tt>. Then use the ctype as a constructor repeatedly. </p> <p style="font-size: 8pt;"> -Please note that an anonymous <tt>struct</tt> declaration implicitly +Please note, that an anonymous <tt>struct</tt> declaration implicitly creates a new and distinguished ctype every time you use it for <tt>ffi.new()</tt>. This is probably <b>not</b> what you want, especially if you create more than one cdata object. Different anonymous @@ -252,12 +252,12 @@ afterwards. Neither the contents of the <tt>metatable</tt> nor the contents of an <tt>__index</tt> table (if any) may be modified afterwards. The associated metatable automatically applies to all uses of this type, no matter how the objects are created or where they -originate from. Note that pre-defined operations on types have +originate from. Note that predefined operations on types have precedence (e.g. declared field names cannot be overridden). </p> <p> All standard Lua metamethods are implemented. These are called directly, -without shortcuts and on any mix of types. For binary operations, the +without shortcuts, and on any mix of types. For binary operations, the left operand is checked first for a valid ctype metamethod. The <tt>__gc</tt> metamethod only applies to <tt>struct</tt>/<tt>union</tt> types and performs an implicit <a href="#ffi_gc"><tt>ffi.gc()</tt></a> @@ -484,7 +484,7 @@ have some extra methods: <p> Free the resources associated with a callback. The associated Lua function is unanchored and may be garbage collected. The callback -function pointer is no longer valid and must not be called anymore +function pointer is no longer valid and must not be called again (it may be reused by a subsequently created callback). </p> |