lua-users home
lua-l archive

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


Hi - 

I'm trying to understand the alt_getopt module a little better, and tried placing a print statement in there, only to get this error:

lua: /home/matt/Projects/COTS/lua_libs/alt_getopt.lua:32: attempt to call global 'print' (a nil value)
stack traceback:
/home/matt/Projects/COTS/lua_libs/alt_getopt.lua:32: in function 'convert_short2long'
/home/matt/Projects/COTS/lua_libs/alt_getopt.lua:72: in function 'get_ordered_opts'
/home/matt/Projects/COTS/lua_libs/alt_getopt.lua:159: in function 'get_opts'
./build.lua:281: in function 'processargs'
./build.lua:502: in main chunk
[C]: ?

The print statement I used had a string literal, so nothing strange/obscure in it... 

Is there something special about module's that I need to be aware of?

thanks

Matt