[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Operators on functions
- From: Thomas Jericke <tjericke@...>
- Date: Tue, 19 Nov 2013 10:47:41 +0000
On 11/19/2013 09:58 AM, John Hind wrote:
You can already do that, just make a userdata or a table with a
metatable and set the __call metamethod to your original function.
From the users perspective it doesn't really matter as long as you
never call type(xxx) on this pseudo-function.
Also, would it be useful to have per-value metatables on function type in the same way as for table and userdata?