[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Evaluating expressions, not statements?
- From: "Paul Winwood"<Paul_Winwood@...>
- Date: Fri, 06 Apr 2001 09:05:26 GMT
>> Another thing: dostring and dofile internally generate a
>> function object from the source and then execute it. Why
>> not split this up and have the functions
>> compilestring/compilefile that return this function?
>> Would make your nice trick of precompiled strings even
>> easier and could be used even for files ;-)
I agree with this, the only modification that I have had to
make to LUA itself to create the LuaScript Active Scripting
Engine is to separate out the compilation step from the
execution step in the dobuffer(). Everything else has been
done by tag methods or hooks.