[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Embeddable IDE for Lua?
- From: Dave Bollinger <DBollinger@...>
- Date: Wed, 18 Aug 1999 22:36:20 -0400
Luiz Henrique de Figueiredo wrote:
>> Just set up your own error handler and call lua_dostring.
But... This reminds me of a message posted just a week or so ago about
"not wanting any effects" when running the code. I don't suppose I've
simply missed an API routine called lua_dontreallydostring(), have I? ;->
In other words, if I'm "do"-ing the string JUST to check the syntax, I
might not want the side-effects of actually executing the code, right?
>> add "do return end" in front of the string
Could I perhaps introduce an INTENTIONAL error at the END of the "block"
that I'm checking with lua_dostring() and then in the error handler check
for any error OTHER than that one? Sort of reversing that idea. That
might work, yes? :-)
Cheers,
Dave