lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Functions as first-class objects
From
: "ks_isaf@
...
" <ks_isaf@
...
>
Date
: Sat, 1 Sep 2018 15:14:47 +0800
> Hi,
> Is it possible to send messages to functions?
> I need to extend functions as first-class objects.
you can use debug.setmetatable to set a metatable for function value.
ks_isaf@126.com
Prev by Date:
Re: Nitpicking about string.sub argument validity check
Next by Date:
Fwd: Re: Functions as first-class objects
Previous by thread:
Re: Nitpicking about string.sub argument validity check
Next by thread:
Fwd: Re: Functions as first-class objects
Index(es):
Date
Thread