[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: bad argument #2 to `write' (string expected, got table)
- From: pancake <pancake@...>
- Date: Mon, 19 Apr 2004 16:11:21 +0000
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?