lua-users home
lua-l archive

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

Luiz Henrique de Figueiredo wrote:

I am starting to port to 5.1 alpha and I have run across a missing function, luaopen_loadlib(). I am calling this with all my other library loads because I found some example code that does it.

Try luaopen_package. If you want to open all standard Lua libraries,
call luaL_openlibs.

Thanks. I found this and it works. I notice that there is no API doc entry for this, or any of the lua_open... calls. Also, I found some useful nuggets in the "Incompatibilities with Previous Version" section. But this section is not listed in the TOC, so it was hard to find. Will these be added to the final docs?

chris marrin              ,""$, "As a general rule,don't solve puzzles        b`    $  that open portals to Hell" ,,.
        ,.`           ,b`    ,`                            , 1$'
     ,|`             mP    ,`                              :$$'     ,mm
   ,b"              b"   ,`            ,mm      m$$    ,m         ,`P$$
  m$`             ,b`  .` ,mm        ,'|$P   ,|"1$`  ,b$P       ,`  :$1
 b$`             ,$: :,`` |$$      ,`   $$` ,|` ,$$,,`"$$     .`    :$|
b$|            _m$`,:`    :$1   ,`     ,$Pm|`    `    :$$,..;"'     |$:
P$b,      _;b$$b$1"       |$$ ,`      ,$$"             ``'          $$
 ```"```'"    `"`         `""`        ""`                          ,P`