[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Functions with individual metatables
- From: Petite Abeille <petite_abeille@...>
- Date: Mon, 25 May 2009 19:18:05 +0200
On May 18, 2009, at 6:46 PM, steve donovan wrote:
Metatables for individual functions would allow method chains
operating on functions. So the question is, what are the performance
implications of such a feature?
Perhaps I'm totally missing the point, but... what's the difference
between a function with a metatable and a table with a call metamethod?
"An important insight is that in Lua there is very little difference
between a function and a table with a __call metamethod."
-- Rici Lake, Func Tables
http://lua-users.org/wiki/FuncTables
http://lua-users.org/wiki/RiciLake
--
PA.
http://alt.textdrive.com/nanoki/