lua-users home
lua-l archive

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

> 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