[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua.c dolibrary not installing traceback - bug or by design?
- From: David Manura <dm.lua@...>
- Date: Sat, 25 Aug 2007 19:13:57 +0000 (UTC)
Let load.lua contain this:
function f() error'fail' end; f()
Running any of these produces an error and traceback:
lua load.lua
lua -e 'require "load.lua"'
But running this produces an error with no traceback:
lua -lload
This occurs because dolibrary in lua.c does not install traceback. It could do
so if the pcall is replaced with a docall as in dofile and dostring.
Is this behavior intentional?