lua-users home
lua-l archive

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


On Thursday, June 21, 2012 03:01:45 PM Geoff Leyland wrote:
> What makes you say that?  Generated code seems the same with and without
> "local sub = string.sub".  As I understand it, you shouldn't alias the ffi
> object, but I didn't think that applied to other tables.

"Sub-optimal" may be overstating it. At the least, you're unnecesarily wasting 
a local variable slot for something that the compiler already knows how to do 
without being told.

-----
-- tom
telliamed@whoopdedo.org