在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):JakobOvrum/LuaD开源软件地址(OpenSource Url):https://github.com/JakobOvrum/LuaD开源编程语言(OpenSource Language):D 96.5%开源软件介绍(OpenSource Introduction):LuaD - Lua for the D Programming Languageimport luad.all;
void main()
{
auto lua = new LuaState;
lua.openLibs();
auto print = lua.get!LuaFunction("print");
print("hello, world!");
} LuaD is a bridge between the D and Lua programming languages. Unlike many other libraries built on the Lua C API, LuaD doesn't expose the Lua stack - instead, it has wrappers for references to Lua objects, and supports seamlessly and directly converting any D type into a Lua type and vice versa. This makes it very easy to use and encourages a much less error-prone style of programming, as well as boosting productivity by a substantial order. Due to D's powerful generic programming capabilities, performance remains the same as the equivalent using the C API. LuaD also includes bindings for the Lua C API. To use it, import the module (LuaD currently supports Lua version 5.1) GoalsCurrent progress noted in parentheses:
Directory Structure
UsageThe recommended way of using LuaD is with dub. See LuaD on the package repository for instructions. The examples can be tested by running Apart from dub, there are makefiles as well as VisualD project files for both the library and the examples. DocumentationYou can find automatically generated documentation on the gh-pages branch, or you can browse it online. TutorialA tutorial can be found on the project's Wiki. Manual UsageImport the Check out the binaries branch for a Please report bugs and issues to the Github issue tracker. Thanks! Build with MakeThe The For example, if you want to build and run the unit tests on a 32 bit machine, the command would be:
Build with VisualD/WindowsVisualD project files are included in the Project files for the examples can be found in The location of LicenseLuaD is licensed under the terms of the MIT license (see the LICENSE file for details). |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论