Roberto Ierusalimschy
daa5fe3e31
'loadin' should accept any value for the environment (not only tables) +
it should check whether chunk has upvalue named '_ENV'
14 years ago
Roberto Ierusalimschy
7192afafee
new module policy: C modules do not create globals and do not register
themselves with 'require' (let 'require' do its work); new auxiliary
functions luaL_newlib/luaL_newlibtable/luaL_setfuncs/luaL_requiref.
Old luaL_register will be deprecated.
15 years ago
Roberto Ierusalimschy
b98de30b8f
'ipair' is back
15 years ago
Roberto Ierusalimschy
bd262d591f
'coroutine' library separated from 'baselib'
15 years ago
Roberto Ierusalimschy
cca71912e6
'gcinfo' was deprecated in version 5.0.
15 years ago
Roberto Ierusalimschy
26d4a73962
with light C functions, 'pairs' does not need to keep 'next' as an
upvalue.
15 years ago
Roberto Ierusalimschy
11126422d9
option to return GC to normal (incremental, non generational) mode
15 years ago
Roberto Ierusalimschy
064e406f67
no more fenvs!
15 years ago
Roberto Ierusalimschy
74123e9686
draft version of a generational mode for garbage collection. (Not well
tested; no major collections; ...)
15 years ago
Roberto Ierusalimschy
62840c5fad
'ipairs' is deprecated
15 years ago
Roberto Ierusalimschy
489253d753
better definitions for lua_[gs]etglobal + less uses of ENVIRONINDEX
15 years ago
Roberto Ierusalimschy
25c557ec63
first version of _ENV; no more global variables
15 years ago
Roberto Ierusalimschy
0dc09cb42e
'unpack' moved to table library (and therefore "renamed" to
'table.unpack'.
15 years ago
Roberto Ierusalimschy
f84b575cfa
no more pseudoindex LUA_GLOBALSINDEX; global table now accessible
through registry
15 years ago
Roberto Ierusalimschy
c3a6f3fa1c
'lua_objlen' replaced by 'lua_rawlen', 'lua_len', and 'luaL_len'
15 years ago
Roberto Ierusalimschy
a25b8ff69c
detail ('lua_tolstring' instead of lua_objlen)
15 years ago
Roberto Ierusalimschy
2e51792596
avoid using deprecated macros lua_[gs]etglobal
15 years ago
Roberto Ierusalimschy
64d5df7772
detail (lua_resume should empty coroutine stack even if they do not
fit into caller stack)
15 years ago
Roberto Ierusalimschy
a654e82f5c
coroutines may have C bodies
15 years ago
Roberto Ierusalimschy
3c4d970a7b
comment typos
15 years ago
Roberto Ierusalimschy
b0f2b288a6
new scheme for debug info about tail calls: no more 'fake' stack entries,
but stack entry knows whether it was tail called
15 years ago
Roberto Ierusalimschy
a6f465f558
new mark LUAMOD_API for all luaopen_* functions
15 years ago
Roberto Ierusalimschy
45dec34597
comments
15 years ago
Roberto Ierusalimschy
c5050b1c41
functions 'getfenv' and 'setfenv' are deprecated
15 years ago
Roberto Ierusalimschy
b9063a08f5
new function 'loadin'
15 years ago
Roberto Ierusalimschy
1ce819333d
new option 'isrunning' for 'lua_gc' (and 'collectgarbage')
15 years ago
Roberto Ierusalimschy
5bc91c6405
no more one environment per thread: all threads share a single global
environment
15 years ago
Roberto Ierusalimschy
f5073de0a7
'ipairs' goes until length of array instead of stopping at the first nil
15 years ago
Roberto Ierusalimschy
a5382b763c
new function lua_copy
15 years ago
Roberto Ierusalimschy
323f33d014
'collectgarbage"count"' returns a second argument with the count%1024.
15 years ago
Roberto Ierusalimschy
5bff2aaf47
calls with LUA_MULTRET may leave no free slots in the stack
16 years ago
Roberto Ierusalimschy
aabe3ddbf4
errors in 'resume' should be all protected
16 years ago
Roberto Ierusalimschy
70a63fa5ad
first implementation of yieldable 'pcall'
16 years ago
Roberto Ierusalimschy
6d0ae11c57
'context' added to suspendable calls
16 years ago
Roberto Ierusalimschy
9e613b8583
missing argument to 'assert' raises "assertion failed" error
16 years ago
Roberto Ierusalimschy
9428ec42d0
new optional argument to 'load', to control allowed modes (binary or
textual chunks)
16 years ago
Roberto Ierusalimschy
ba484b9eb1
yielding across lua_call (first version)
16 years ago
Roberto Ierusalimschy
5d3cc5def8
'writestring' changed into a configurable macro
16 years ago
Roberto Ierusalimschy
53db607963
avoid using 'fputs' in 'print' to avoid problems with embedded zeros
16 years ago
Roberto Ierusalimschy
f9dec5fc84
do not use compatibility macros in Lua
17 years ago
Roberto Ierusalimschy
202de59254
useless #include removed (pointed by lint)
17 years ago
Roberto Ierusalimschy
7316d61a66
'coroutine.running' should work for the main thread too
17 years ago
Roberto Ierusalimschy
fa19baab7f
proxies must be created with a __gc field in their metatables to work
properly with new semantics for finalizers
17 years ago
Roberto Ierusalimschy
5ac3386888
bug: unpack with maximum indices may crash due to arithmetic overflow
17 years ago
Roberto Ierusalimschy
015e973899
bug: auxresume should reserve stack space for boolean result
17 years ago
Roberto Ierusalimschy
daddc57abd
luaL_tostring -> luaL_tolstring (more generic)
17 years ago
Roberto Ierusalimschy
b4164a9aa7
details
17 years ago
Roberto Ierusalimschy
2fa476655f
detail
17 years ago
Roberto Ierusalimschy
ab09732986
new metamethods for '__pairs' and '__ipairs'
17 years ago
Roberto Ierusalimschy
8d3dd04137
clearing some old compatibility code
18 years ago