lua-users home
lua-l archive

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


On Mon, Jan 24, 2011 at 5:07 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> On Tue, Jan 25, 2011 at 00:50, David Given <dg@cowlark.com> wrote:
>> Interestingly enough, the absence of a @line directive in Lua is
>> crippling Objective Lua's ability to be useful.[...]
> I plan to experiment with beating this by writing error message
> filter, which would use a stored mapping of generated code to source
> code file/line ranges, and do a gsub before spitting out an error.
> Loading of that mapping should be delayed until the actual error
> happens, so it should not bring too much overhead...

My thought too [1].  I've had concerns how error handlers work too though [2].

[1] http://lua-users.org/lists/lua-l/2011-01/msg00040.html
[2] http://lua-users.org/lists/lua-l/2010-08/msg00481.html