[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT FFI callbacks for functions using only built-in operators and locals
- From: Adam Strzelecki <ono@...>
- Date: Fri, 16 Dec 2011 00:56:07 +0100
>> Indeed this is pretty limited subset, but if we allow math
>> functions too and FFI calls, then we are able to define pretty
>> many useful expressions that can turn into callbacks. The only
>> constraint would be to not use upvalues.
>
> All of these are accessed via upvalues or globals …
Good point. Okay then locals variables only + ffi.C namespace would work? I guess I could take math function out of there, but calling ffi.C.sin would not be as elegant as math.sin.
--
Adam