Re: Functions with individual metatables
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Functions with individual metatables
- From: Petite Abeille <petite_abeille@...>
- Date: 2009年5月25日 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/