lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> There isn't a very good way to do what you're describing directly.
> One thing you can do is create mutable proxy functions and have the
> callers only see those.  If all the functions you describe are in a
> table you control, you can use a metatable on that table to make the
> indirection functions automatically.  

Thank you for your reply, it really is a good idea

But I am a bit curious about is why the changes ldc-> lp = valc-> lp will lead 
to memory disorders, as far as I know proto and the closure is separate from 
recycling.