[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: patch: local a,b from t
- From: Antero Vipunen <antero@...>
- Date: Wed, 07 Sep 2005 21:38:55 +0700
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.