lua-users home
lua-l archive

Re: Functions with individual metatables

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


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/

AltStyle によって変換されたページ (->オリジナル) /