lua-users home
lua-l archive

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



On Mar 04, 2005, at 18:21, Luiz Henrique de Figueiredo wrote:

There are probably several other small changes that we forget right now...

Did something change in how require() is handled?

I'm having difficulties using some modules (e.g. random and md5) but others appears to be fine (e.g. lfs, uuid, gdbm, posix).

The symptom is that the require function seems to work fine, but... a call to any of the module loaded results in the following exception:

require( "random" )

local aRandom = random.new( os.time() )

lua: Example.lua:206: attempt to index global `random' (a nil value)
stack traceback:
        Example.lua:206: in main chunk
        [C]: ?

I also get a bus error pretty systematically. See attached log.

All the above worked very fine with the stock work4 distribution. No changes except updating from work4 to work5.

HTH.

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


Attachment: lua.crash.log
Description: Binary data