返回

Lua内置函数,能在脚本里通过序号调用函数吗?

static const struct luaL_reg iolib[] = { {LUA_ERRORMESSAGE, errorfb}, {"clock", io_clock}, {"date", io_date}, {"debug", io_debug}, {"execute", io_execute}, {"exit", io_exit}, {"getenv", io_getenv}, {"remove", io_remove}, {"rename", io_rename}, {"setlocale", setloc}, {"tmpname", io_tmpname}};

上面是Lua内置的函数.我不想通过函数名来调用函数.有办法在脚本里通过序号调用函数吗?

名字: 自动排版 密码:

回复 | (1330) | w8u | 2006-11-28 07:49:49