[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua C API can't be used from other languages without C wrappers
- From: Russell Haley <russ.haley@...>
- Date: Sun, 18 Feb 2018 17:58:48 -0800
On Sun, Feb 18, 2018 at 7:39 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 2018-02-18 17:23 GMT+02:00 Soni "They/Them" L. <fakedme@gmail.com>:
>
>> It was recently brought to my attention that the Lua C API is strictly a C
>> API, and not as universal as some ppl claim it to be.[1]
>
> It works perfectly with Free Pascal too.
>
> http://lua-users.org/wiki/LuaInFreePascal
+1. Free Pascal is on my todo list...
>> More specifically, it's unsafe to directly call this API from any sort of FFI!
>> This includes LuaJIT FFI, Python CFFI, any of the many FFI wrappers for Java, and so on!
>
> Would not that be more a defect of the FFI than of the Lua API?
>