aboutsummaryrefslogtreecommitdiff
path: root/doc/extensions.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--doc/extensions.html10
1 files changed, 1 insertions, 9 deletions
diff --git a/doc/extensions.html b/doc/extensions.html
index d32dd37c..dc5fb00a 100644
--- a/doc/extensions.html
+++ b/doc/extensions.html
@@ -233,19 +233,11 @@ the corresponding metamethod (e.g. <tt>"__index"</tt>).
233 233
234<h2 id="resumable">Fully Resumable VM</h2> 234<h2 id="resumable">Fully Resumable VM</h2>
235<p> 235<p>
236The LuaJIT 2.x VM is fully resumable. This means you can yield from a 236The LuaJIT VM is fully resumable. This means you can yield from a
237coroutine even across contexts, where this would not possible with 237coroutine even across contexts, where this would not possible with
238the standard Lua&nbsp;5.1 VM: e.g. you can yield across <tt>pcall()</tt> 238the standard Lua&nbsp;5.1 VM: e.g. you can yield across <tt>pcall()</tt>
239and <tt>xpcall()</tt>, across iterators and across metamethods. 239and <tt>xpcall()</tt>, across iterators and across metamethods.
240</p> 240</p>
241<p>
242Note however that LuaJIT 2.x doesn't use
243<a href="http://coco.luajit.org/"><span class="ext">&raquo;</span>&nbsp;Coco</a> anymore. This means the
244overhead for creating coroutines is much smaller and no extra
245C&nbsp;stacks need to be allocated. OTOH you can no longer yield
246across arbitrary C&nbsp;functions. Keep this in mind when
247upgrading from LuaJIT 1.x.
248</p>
249 241
250<h2 id="lua52">Extensions from Lua 5.2</h2> 242<h2 id="lua52">Extensions from Lua 5.2</h2>
251<p> 243<p>