lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to use the level parameter described in the docs for
debug.traceback(). However, I'm finding that it doesn't appear to work
as described --- instead, all the parameters get concatenated and become
the error message. For example:

> =debug.traceback()
stack traceback:
	stdin:1: in main chunk
	[C]: ?

...works as expected. But this:

> =debug.traceback(nil, "foo", 1)
1

...isn't. Experimentation reveals that:

> =debug.traceback("foo", "bar", "baz", "boo")
foobarbazboo
stack traceback:
	stdin:1: in main chunk
	[C]: ?

...which is very odd.

What am I missing here?

- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "There is nothing in the world so dangerous --- and I mean *nothing*
│ --- as a children's story that happens to be true." --- Master Li Kao,
│ _The Bridge of Birds_
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFK9sCFf9E0noFvlzgRAr4lAJ9QHriaCgZ9bcx1sKdkTXT6TR5lMACeL9NF
Q/Q5PRzg+C3myXNiETR/dVQ=
=3z64
-----END PGP SIGNATURE-----