[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Digest, Vol 174, Issue 1
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 28 Sep 2009 12:45:56 -0300
> You can already associate any kind of information to a function by
> using it as a weak key in a Lua table. However you need access to the
> debug library to access built-in informations, or simply to allow a
> function to get a reference to itself to use as a key in the weak
> tables I mentioned.
You do not need any reference; the function itself can be the key.
-- Roberto