I've updated LNT 1 for Lua 4.0: http://www.tecgraf.puc-rio.br/lua/notes/ltn002.html It's even easier in 4.0 because the built-in functions are now in an ordinary library (lbaselib.c). --lhf