[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Line info for Lua Scripts
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 12 Jun 2001 09:35:52 -0300
> Does Lua supports some kind of meta line information?
The debug library (dblib) has a function that returns (among other things)
the current line number, but it is not very efficient (it does a kind of
search into an internal data structure, and also builds a table to return
its results; its main use is for debugging ;-)
print(getinfo(1, 'l').currentline)
-- Roberto