[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: What languages could be used to implement the functions to be invoked by Lua?
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: Fri, 18 Sep 2020 16:58:39 +0800
Hi, list
As per the documentation(https://www.lua.org/pil/24.html), which says
that[emphasise mine]:
At the same time, a program that uses Lua can register new functions
in the Lua environment;
such functions are implemented in C (or **another language**) and can
add facilities that
cannot be written directly in Lua.
My question is what other languages?
Can these functions be implemented in C++? If not, is there any
workaround to achieve this goal?
If you could give some simple examples, that would be great.
I would be grateful to have some help with this question.
Best regards
Sunshilong