lua-users home
lua-l archive

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



Hi.

In the book Programming in Lua is an interesting chapter (17.1) about Memoize functions. The idea seems to work fine for simple data types like numbers and strings. But what if one or more of function's parameters are tables or functions? For tables I could make copies from parameter tables and then compare if the table is exactly the same for later function calls. Could this be implemented in a better way? What about functions? Is it possible to find out if function contents have changed?

Floru