lua-users home
lua-l archive

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


This might be a n00b question, but..

I know Lua is using strict/eager evaluation, but I found some posts on
the list, saying that it should be possible to implement a "delay"
function in plain Lua to imitate lazy evaluation. However It seems
that I can't find even a single simple example on the web that does
anything close to this. I'm just curious what approach would you take
if you were to implement something that can mimic lazy evaluation.
It's not like memoization techniques or lazy tables. I can't find a
way to truly make a generic expression or function invocation lazy
with lazy tables.

Thanks in advance for any suggesstions : )