lua-users home
lua-l archive

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


In 5.1 you need to pcall them, as in linit.c

// Keffo.

epajarre@koti.soon.fi wrote:

Hello, (and my apologies if this issue has been handled here before)

I finally decided to try Lua 5.1 (alpha) with my application.
Unfortunatelly things like luaopen_package or luaopen_io
fail for me.

It looks like that I am seeing the same problem as
described by Adam Moss (see mailing 4/11/2005 with
title "assert in luaopen_io")

What is the currently recommended fix for the problem?
(The example in PIL http://www.lua.org/pil/24.1.html
does fail because of this problem)

I have not used luaL_openlibs because I don't want to
bring in all of the libraries (especially not the debug
library)


        Eero