diff options
| author | Mike Pall <mike> | 2012-10-31 18:14:49 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2012-10-31 18:14:49 +0100 |
| commit | 4b9441c0a9fd24b06a853ada22ed2c53a37d7b0e (patch) | |
| tree | 26df0cb51d9b6bfe750f20fa3df259058a825822 /doc/extensions.html | |
| parent | 1f372e13c27446a64247bcd222ec3d91d1f46363 (diff) | |
| download | luajit-4b9441c0a9fd24b06a853ada22ed2c53a37d7b0e.tar.gz luajit-4b9441c0a9fd24b06a853ada22ed2c53a37d7b0e.tar.bz2 luajit-4b9441c0a9fd24b06a853ada22ed2c53a37d7b0e.zip | |
Update docs for release candidate.
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> |
