lua-users home
lua-l archive

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

On Wed, Oct 19, 2011 at 3:19 PM, Oskar Forsslund
<> wrote:
> I should have been clearer. I mean without just writing it in C, I want to
> transfer the actual expression from lua to C at runtime

You would need to wrap it as a table structure


and 'interpret' that structure. This might be acceptable if your
functions are relatively expensive.

But then, what stops you from passing a Lua function?

function() func1() and func2() and (func3() or func4()) end

(could be cached)

steve d.