Cormac Shannon
f88b17959f
Hide shell functions from _G using upvalues on the main chunk
...
Store __command, __interactive, __getenv, __setenv as upvalues
populated by lua_load() from the registry, keeping them invisible
to user code while accessible to the parser's codegen.
2026-03-12 22:46:56 +00:00
Cormac Shannon
4cc352cbec
Implement shell builtins: cd, exec, umask (issue #15 )
...
Add builtin dispatch in lcmd.c that checks __builtins table before
fork(), so cd/exec/umask operate on the shell process itself.
2026-03-04 19:20:42 +00:00
Roberto Ierusalimschy
f67f324377
deprecated files
2000-09-05 16:28:46 -03:00
Roberto Ierusalimschy
9a21e81907
more builtin functions using official API
2000-08-31 18:01:43 -03:00
Roberto Ierusalimschy
f0b3cd1d6f
new API functions pop', insert', and `move'
2000-08-31 17:23:40 -03:00
Roberto Ierusalimschy
fb5e6d5ac4
more functions implemented through the official API
2000-08-31 13:52:06 -03:00
Roberto Ierusalimschy
100bfec39a
new implementation for `next'
2000-08-31 11:08:27 -03:00
Roberto Ierusalimschy
4e56c0d514
better implementation for luaV_pack
2000-08-29 11:41:56 -03:00
Roberto Ierusalimschy
ac12f4db4b
C upvalues are the last arguments to a function
2000-08-29 11:33:31 -03:00
Roberto Ierusalimschy
9fdf73bc9a
first version for new API
2000-08-28 14:57:04 -03:00
Roberto Ierusalimschy
44eb7d91ac
comments
2000-08-15 15:28:48 -03:00
Roberto Ierusalimschy
ddc8d94a08
new name for `lua_[sg]etglobaltable'
2000-08-14 16:18:14 -03:00
Roberto Ierusalimschy
e238efc536
default now is multi-state
2000-08-09 16:16:57 -03:00
Roberto Ierusalimschy
435f587ed0
(much) better handling of memory alloction errors
2000-08-04 16:38:35 -03:00
Roberto Ierusalimschy
cfba572076
remove dummy argument in LUA_ASSERT
2000-06-30 11:35:17 -03:00
Roberto Ierusalimschy
1de5587184
`lua.h' is included before any other Lua header file
2000-06-12 10:52:05 -03:00
Roberto Ierusalimschy
8ca9534d04
access to `values' in TObject always through macros
2000-06-08 15:27:13 -03:00
Roberto Ierusalimschy
8bcf622876
new signature for `luaH_set'
2000-06-06 13:31:41 -03:00
Roberto Ierusalimschy
292c953018
new auxiliar function `luaH_setstr'
2000-06-05 17:15:33 -03:00
Roberto Ierusalimschy
6b9bf49265
better to keep foreach' and foreachi'.
2000-06-02 16:08:56 -03:00
Roberto Ierusalimschy
8e617985fa
functions for...' and raw...' are obsolete now
2000-05-26 16:17:57 -03:00
Roberto Ierusalimschy
ef62b340e0
code cleaner for 16 bits.
2000-05-24 10:54:49 -03:00
Roberto Ierusalimschy
44b71ca816
defines for _ERRORMESSAGE and _ALERT
2000-05-09 11:50:16 -03:00
Roberto Ierusalimschy
11a7022067
global variables are stored in a Lua table
2000-05-08 16:32:53 -03:00
Roberto Ierusalimschy
534c3a64d3
small optimizations for table access
2000-04-25 13:55:09 -03:00
Roberto Ierusalimschy
62824137d6
no more `seterrormethod' function
2000-04-17 16:23:12 -03:00
Roberto Ierusalimschy
4aa9ad6514
functions must return explicit `nil' on failure
2000-04-14 14:44:20 -03:00
Roberto Ierusalimschy
d76b1a0eef
base' for tonumber' must be >= 2.
2000-04-13 15:08:18 -03:00
Roberto Ierusalimschy
ceaa97ff5b
tonumber must return `nil' when convertion fails.
2000-04-13 13:46:43 -03:00
Roberto Ierusalimschy
9f734094f9
`nil' is optional for next and nextvar (and is not for tonumber & tag).
2000-04-04 17:49:32 -03:00
Roberto Ierusalimschy
e30327728c
BUG: tostring() without arguments gives seg. fault.
2000-04-03 10:20:33 -03:00
Roberto Ierusalimschy
a69356e9e0
no more special cases for closures with 0 upvalues (performance is the same,
...
memory use a little higher, code much simpler).
2000-03-29 17:19:20 -03:00
Roberto Ierusalimschy
b53dc0c485
TAG_ARRAY -> TAG_TABLE
2000-03-27 17:10:21 -03:00
Roberto Ierusalimschy
102a1be615
no more support for gc TM for tables
2000-03-27 17:08:02 -03:00
Roberto Ierusalimschy
213e9febc8
limits now are in `llims.n'
2000-03-24 14:26:08 -03:00
Roberto Ierusalimschy
73aa465a8e
some name changes
2000-03-10 15:37:44 -03:00
Roberto Ierusalimschy
88b306f495
some optimizations
2000-03-08 21:19:22 -03:00
Roberto Ierusalimschy
3c9d999424
many details (most by lhf).
2000-03-03 11:58:26 -03:00
Roberto Ierusalimschy
4d4e6f07c0
all order operators use a single tag method (<)
2000-02-22 16:12:46 -02:00
Roberto Ierusalimschy
512b15b601
small optimizations (relational operators)
2000-01-19 14:50:30 -02:00
Roberto Ierusalimschy
607012ece1
tag method must be a function
...
+ error message must be a string
1999-12-30 16:27:03 -02:00
Roberto Ierusalimschy
aabefe9d68
details.
1999-12-28 17:23:41 -02:00
Roberto Ierusalimschy
acdb0b741e
comments.
1999-12-27 15:33:22 -02:00
Roberto Ierusalimschy
5b08fcd5a1
no more "lua" in error messages
1999-12-27 11:04:53 -02:00
Roberto Ierusalimschy
b1b0c219f5
new ttypes to distinguish between C closures and Lua closures.
1999-12-23 16:19:57 -02:00
Roberto Ierusalimschy
d61d5bef9d
details
1999-12-20 11:10:38 -02:00
Roberto Ierusalimschy
12b45c2df2
luaS_newfixedstring renamed to luaS_newfixed
1999-12-14 16:42:57 -02:00
Roberto Ierusalimschy
1b15206cf9
many details + code redistribution
1999-12-14 16:33:29 -02:00
Roberto Ierusalimschy
544eeb1f9c
details
1999-12-07 10:05:34 -02:00
Roberto Ierusalimschy
533beedad2
new tests for begin/end blocks and multi-state
1999-12-06 09:42:18 -02:00