lua-users home
lua-l archive

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


On 4/7/2012 11:53 PM, Patrick Rapin wrote:
'local' keyword removal isn't looking good -- gets very awkward attempting a
general optimizer using the ad hoc data structures LuaSrcDiet currently has.
Better to do it for the Lua 5.2 version.

By "local" keyword removal, are you thinking of making the following
substitution ?
   local a = 12
   local b = "str"
==>
   local a,b=12,"str"
Because otherwise, I don't think "local" can be considered optional at all.

Well, it pretty easy to draw up a big list of possible optimizations. The possibilities are obvious. That is not an issue at all.

The actual problem: Someone has to spend the time implementing them. :-) As you can probably guess, no one is rushing to do them.

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia