On Mon, Aug 11, 2008 at 4:25 PM, Ben Kelly <firstname.lastname@example.org>
If using alpha compilers gives you the heebie jeebies, you can also do
something like this:
return assert(loadstring("return function("..args..")"
.." return "..exp.." end"))()
You probably want to perform some compilation caching, indexing compiled functions with their source, so that you keep acceptable performances when lambdas occur in loops (i.e. virtually always).