Merge branch 'master' into v2.1

This commit is contained in:
Mike Pall 2017-08-18 12:52:30 +02:00
commit 9634fa9814

View File

@ -864,7 +864,7 @@ place of a type, you'd need to use <tt>ffi.typeof("int")</tt> instead.
<p> <p>
The main use for parameterized types are libraries implementing abstract The main use for parameterized types are libraries implementing abstract
data types data types
(<a href="http://www.freelists.org/post/luajit/ffi-type-of-pointer-to,8"><span class="ext">&raquo;</span>&nbsp;example</a>), (<a href="https://www.freelists.org/post/luajit/ffi-type-of-pointer-to,8">example</a>),
similar to what can be achieved with C++ template metaprogramming. similar to what can be achieved with C++ template metaprogramming.
Another use case are derived types of anonymous structs, which avoids Another use case are derived types of anonymous structs, which avoids
pollution of the global struct namespace. pollution of the global struct namespace.