lua-users home
lua-l archive

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


Hello Romulo,

On Fri, Jul 2, 2010 at 1:18 PM, Romulo <romuloab@gmail.com> wrote:

> And so on... This way you will preserve local line numbers,

i've tried this code, introducing an error in the code:

loadstring( [=====[
foo = bar
print'ok'
print
]=====], 'a.lua' )()

I was execting a stacktrace like:
lua: a.lua:3: '=' expected near ''


Instead, i get this:
lua: /Users/veleno/Downloads/testdofile.lua:5: attempt to call a nil value
stack traceback:
	/Users/veleno/Downloads/testdofile.lua:5: in main chunk
	[C]: ?


Did I misunderstood your suggestion?