[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: merging lua files
- From: Valerio Schiavoni <valerio.schiavoni@...>
- Date: Fri, 2 Jul 2010 15:14:38 +0200
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?