lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Luiz Henrique de Figueiredo wrote:
When you set one of these values, collectgarbage and lua_gc return
the previous value. The manual says so for lua_gc but not for collectgarbage.

Thanks, I've missed that (for lua_gc).

[nitpicking]
The manual is inaccurate from the formal logic standpoint:

# LUA_GCSETPAUSE: sets data/100 as the new value for the pause
of the collector (see §2.10). The function returns the previous
value of the pause.

Should be: returns the previous value of the pause*100.
Same for LUA_GCSETSTEPMUL.
[/nitpicking]

--
Shmuel