lua-users home
lua-l archive

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


>> 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