diff options
Diffstat (limited to 'doc/extensions.html')
-rw-r--r-- | doc/extensions.html | 10 |
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> |
236 | The LuaJIT 2.x VM is fully resumable. This means you can yield from a | 236 | The LuaJIT VM is fully resumable. This means you can yield from a |
237 | coroutine even across contexts, where this would not possible with | 237 | coroutine even across contexts, where this would not possible with |
238 | the standard Lua 5.1 VM: e.g. you can yield across <tt>pcall()</tt> | 238 | the standard Lua 5.1 VM: e.g. you can yield across <tt>pcall()</tt> |
239 | and <tt>xpcall()</tt>, across iterators and across metamethods. | 239 | and <tt>xpcall()</tt>, across iterators and across metamethods. |
240 | </p> | 240 | </p> |
241 | <p> | ||
242 | Note however that LuaJIT 2.x doesn't use | ||
243 | <a href="http://coco.luajit.org/"><span class="ext">»</span> Coco</a> anymore. This means the | ||
244 | overhead for creating coroutines is much smaller and no extra | ||
245 | C stacks need to be allocated. OTOH you can no longer yield | ||
246 | across arbitrary C functions. Keep this in mind when | ||
247 | upgrading 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> |