lua-users home
lua-l archive

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


I would like to apologize to you for being terse/gruff.  I know you to be a very smart/considerate individual and this is just not a good morning for me -- regardless, I shouldn't have responded in the way I did.

An import-like statement isn't possible for creating (as locals) every reference in say "the string library", because it can't know at compile-time how many references are in 'string'.  That is why this cannot work -- and that was the verdict in the thread we had previously on this subject.  No matter how much I want it to happen, it can't happen because locals aren't allocated at runtime.  table.import() is the best that I can do and the most practical for what is possible right now.

I strongly disagree with preprocessing in a scripting language, it feels sinful :p  I would like to see the 'in' keyword patch added to enable this: local byte, reverse, gsub in require 'string'