lua-users home
lua-l archive

loadfile and line number

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


When loadfile() or loadstring() fail they return (nil, message). The message contains the line number where the error occurred. How the script can obtain that line number not resorting to parsing the message string?
--
Shmuel

AltStyle によって変換されたページ (->オリジナル) /