lua-users home
lua-l archive

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


Peter Shook wrote:


http://lua-users.org/files/wiki_insecure/power_patches/5.1-alpha/lua-5.1-alpha-from.patch

Could you please clean it up? There is irrelevant stuff for hex-num-handling.

PS/ But You've found an interesting syntax. I have patched my source to handle

from some.pkg import name_0, ..., name_n

which is semantically equivalent to

local name_0, ..., name_n
do
 local pkg = require "some.pkg"
 name_0, ..., name_n = pkg.name_0, ..., pkg.name_n
end

AMDG,
 Antero Vipunen.