lua-users home
lua-l archive

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


On Tue, Jan 25, 2011 at 1:11 PM, Alexander Gladysh <agladysh@gmail.com> wrote:
> BTW, @line construct seems to be way out of Lua style. I'm lost at how
> should it look to fit to the Lua philosophy better...

Yes, it's very C-ish, that sudden break into a different level
(lexical) in the midst of a clean modern language. (Imagine how
embarrassed Roberto would be having to explain that next time the
language designers all get together to have a beer)

Can write it as a pseudo-function, line(42), but it does work at the
lexical level.

How about clever custom error hooks?  If the line number map was Lua
data and loaded, then it surely it could be done?

steve d.