[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: questions about closure construction
- From: steve donovan <steve.j.donovan@...>
- Date: Tue, 19 Mar 2013 15:20:23 +0200
On Tue, Mar 19, 2013 at 3:11 PM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
> Lua 5.2.2 Copyright (C) 1994-2013 Lua.org, PUC-Rio
>> a = {}; for i = 1, 2 do a[i] = function () end end
>> = a[1] == a[2]
> true
And the same for 5.2.1 ;) But what precisely is the difference
between this and the naive test? And does it mean less overhead in
creating such identical closures?
steve d.