lua-users home
lua-l archive

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


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

[Resend, as the original message doesn't seem to have shown up --- are
there mailing list server issues?]

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. For example:

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

...works as expected. But this:

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

...doesn't. Experimentation reveals that:

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

...which is very odd; it appears that all the parameters are getting
concatenated together and become the message.

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

iEYEARECAAYFAkr4DE4ACgkQf9E0noFvlzjR6QCguXkPN6xuHTLDsapsPltXlzKx
EOAAniHHtcwXRSUFDYaoGEZtHG5SogEX
=fOG0
-----END PGP SIGNATURE-----