lua-users home
lua-l archive

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


I'm glad about one error message given my lua5.0.2.

I tested that on NetBSD-current and FreeBSD-5.2:

I also test running lua as dynamic and static, and allways the same error:

[1:~]# cat /tmp/luaerr 
print("ImOK");
io.write("IFAIL!\n");
print("IGNOREME");
[1:~]# lua /tmp/luaerr 
ImOK
IFAIL!
lua: /tmp/luaerr:2: bad argument #2 to `write' (string expected, got table)
stack traceback:
        [C]: in function `write'
        /tmp/luaerr:2: in main chunk
        [C]: ?
[1:~]# 


it's really strange...there's not second argument to write...why it gives that error?

it's a bug?