lua-users home
lua-l archive

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


On Mon, Jan 10, 2011 at 16:32, Mike Pall <mikelu-1101@mike.de> wrote:
> Geoff Leyland wrote:
>> If, that is, there was any advantage of newproxy over a proxy
>> table.  Anyone know if there is one?
>
> Userdata proxies are faster (*) and they can't be messed up by
> accident with rawset() or table.insert(). And of course they are
> the best choice for real sandboxing.

Doesn't 5.2 add __insert as well, and some other useful metamethods?
(On a semi-related note, does string.format call tostring (and by
extension __tostring) in 5.2? Having to do that manually always annoys
me...)

-- 
Sent from my toaster.