Re: newproxy, bug
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: newproxy, bug
- From: Geoff Leyland <geoff_leyland@...>
- Date: 2011年1月11日 11:55:51 +1300
On 11/01/2011, at 11:41 AM, Javier Guerra Giraldez wrote:
> On Mon, Jan 10, 2011 at 5:38 PM, Geoff Leyland
> <geoff_leyland@fastmail.fm> wrote:
>> If, that is, there was any advantage of newproxy over a proxy table. Anyone know if there is one?
>
> until 5.1, you couldn't override #t for tables
Do you mean 5.2?
$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> a = setmetatable({}, { __len = function() return 5 end })
> print(#a)
0
- References:
- newproxy, bug, joao lobato
- Re: newproxy, bug, Roberto Ierusalimschy
- Re: newproxy, bug, Javier Guerra Giraldez
- Re: newproxy, bug, Geoff Leyland
- Re: newproxy, bug, Javier Guerra Giraldez