diff options
| author | Mike Pall <mike> | 2021-04-25 17:45:40 +0200 |
|---|---|---|
| committer | Mike Pall <mike> | 2021-04-25 17:45:40 +0200 |
| commit | fcdb246506149b62fdc557e687d0ba98ecc9aed0 (patch) | |
| tree | 959f6993ef5fcfcc153614f48867d6b6c1236b12 /doc | |
| parent | 75ee3a6159f1831fa57992df3caf5a2c303c281a (diff) | |
| parent | 431e81cdff9653cd16c6333bb51c314bd051611d (diff) | |
| download | luajit-fcdb246506149b62fdc557e687d0ba98ecc9aed0.tar.gz luajit-fcdb246506149b62fdc557e687d0ba98ecc9aed0.tar.bz2 luajit-fcdb246506149b62fdc557e687d0ba98ecc9aed0.zip | |
Merge branch 'master' into v2.1
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/faq.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/faq.html b/doc/faq.html index a5d744d2..01956e15 100644 --- a/doc/faq.html +++ b/doc/faq.html | |||
| @@ -135,6 +135,19 @@ You have to press Ctrl-C twice to get stop your program. That's similar | |||
| 135 | to when it's stuck running inside a C function under the Lua interpreter.</dd> | 135 | to when it's stuck running inside a C function under the Lua interpreter.</dd> |
| 136 | </dl> | 136 | </dl> |
| 137 | 137 | ||
| 138 | <dl id="order"> | ||
| 139 | <dt>Q: Table iteration with <tt>pairs()</tt> does not result in the same order?</dt> | ||
| 140 | <dd>The order of table iteration is explicitly <b>undefined</b> by | ||
| 141 | the Lua language standard.<br> | ||
| 142 | Different Lua implementations or versions may use different orders for | ||
| 143 | otherwise identical tables. Different ways of constructing a table may | ||
| 144 | result in different orders, too.<br> | ||
| 145 | Due to improved VM security, LuaJIT 2.1 may even use a different order | ||
| 146 | on separate VM invocations or when string keys are newly interned.<br><br> | ||
| 147 | If your program relies on a deterministic order, it has a bug. Rewrite it, | ||
| 148 | so it doesn't rely on the key order. Or sort the table keys, if you must. | ||
| 149 | </dl> | ||
| 150 | |||
| 138 | <dl id="sandbox"> | 151 | <dl id="sandbox"> |
| 139 | <dt>Q: Can Lua code be safely sandboxed?</dt> | 152 | <dt>Q: Can Lua code be safely sandboxed?</dt> |
| 140 | <dd> | 153 | <dd> |
