[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: request
- From: "John Belmonte" <jvb@...>
- Date: Tue, 17 Oct 2000 12:42:07 +0900
Steve Dekorte wrote:
>
> It would be really usefull to me to have a hook for when a function was
declared in Lua.
> Something like:
>
> function declarefunction(source)
> ...
> end
>
> setfunctionmethod(declarefunction)
Can't you use the setglobal tag method on nil? In the tag method just check
for the new value being a function. I'm doing this in my old overloaded
function example (http://www.egroups.com/files/lua-l/overloaded.lua).
Unfortunately with Lua as it stands now you'll have to extend assignment to
global and assignment to table separately...
-John