Re: Regarding the name 'pairs'
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Regarding the name 'pairs'
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2009年9月14日 09:35:07 -0300
> So, is there some support for Mark Hamburg's closure sugar in Rio ;) ?
Yes. Here we would write C(set, "values") for C:values and define C as
C = function (obj, met)
met = obj[met]
return function (...) return met(obj, ...) end
end
(I guess it works in other cities too ;)
-- Roberto