lua-users home
lua-l archive

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


ET wrote:

>> 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.

Paul.