From 050466552bf7eb8b7944aa52c93b45326ae14d7a Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 12 Oct 2020 16:11:32 +0200 Subject: Minor changes and https-ify links. --- doc/ext_ffi_semantics.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/ext_ffi_semantics.html') diff --git a/doc/ext_ffi_semantics.html b/doc/ext_ffi_semantics.html index ce6313d7..c95407b7 100644 --- a/doc/ext_ffi_semantics.html +++ b/doc/ext_ffi_semantics.html @@ -668,7 +668,7 @@ through unions is explicitly detected and allowed. constructor. This is equivalent to ffi.new(ct, ...), unless a __new metamethod is defined. The __new metamethod is called with the ctype object -plus any other arguments passed to the contructor. Note that you have to +plus any other arguments passed to the constructor. Note that you have to use ffi.new inside of it, since calling ct(...) would cause infinite recursion. @@ -838,7 +838,7 @@ place of a type, you'd need to use ffi.typeof("int") instead.

The main use for parameterized types are libraries implementing abstract data types -(example), +(» example), similar to what can be achieved with C++ template metaprogramming. Another use case are derived types of anonymous structs, which avoids pollution of the global struct namespace. -- cgit v1.2.3-55-g6feb