{"id":13773156,"url":"https://github.com/nlua/nlua","last_synced_at":"2025-05-12T11:16:56.165Z","repository":{"id":7289706,"uuid":"8605054","full_name":"NLua/NLua","owner":"NLua","description":"Bridge between Lua and the .NET.","archived":false,"fork":false,"pushed_at":"2025-04-01T02:57:32.000Z","size":90360,"stargazers_count":2118,"open_issues_count":104,"forks_count":313,"subscribers_count":89,"default_branch":"main","last_synced_at":"2025-05-12T11:16:47.504Z","etag":null,"topics":["c-sharp","dotnet","lua","lua-functions","luainterface","netcore","netstandard","xamarin"],"latest_commit_sha":null,"homepage":"http://nlua.org","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NLua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"viniciusjarina","custom":"https://www.paypal.me/viniciusjarina"}},"created_at":"2013-03-06T14:27:53.000Z","updated_at":"2025-05-11T16:24:05.000Z","dependencies_parsed_at":"2024-02-03T06:29:21.496Z","dependency_job_id":"4db87066-32a9-41b0-8b4d-7344811304c3","html_url":"https://github.com/NLua/NLua","commit_stats":{"total_commits":585,"total_committers":48,"mean_commits":12.1875,"dds":"0.24957264957264957","last_synced_commit":"9df4990caf20792540835250c9653cdde51823f9"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLua%2FNLua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLua%2FNLua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLua%2FNLua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLua%2FNLua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NLua","download_url":"https://codeload.github.com/NLua/NLua/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253726903,"owners_count":21954095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-sharp","dotnet","lua","lua-functions","luainterface","netcore","netstandard","xamarin"],"created_at":"2024-08-03T17:01:12.108Z","updated_at":"2025-05-12T11:16:56.138Z","avatar_url":"https://github.com/NLua.png","language":"C#","readme":"👋 Hello there! | \n------------ | \n\u003e 🔭 Thank you for checking out this project.\n\u003e\n\u003e 🍻 We've made the project Open Source and **MIT** license so everyone can enjoy it. \n\u003e\n\u003e 🛠 To deliver a project with quality we have to spent a lot of time working on it.\n\u003e \n\u003e ⭐️ If you liked the project please star it.\n\u003e\n\u003e 💕 We also appreaciate any **Sponsor**  [ [Patreon](https://www.patreon.com/codefoco) | [PayPal](https://paypal.me/viniciusjarina) ] \n\n[![Logo](https://secure.gravatar.com/avatar/77ecf0fb9d8419be7715c6e822e66562?s=150)](https://github.com/NLua/NLua)\n\nNLua\n=======\n\n| NuGet |\n| ------|\n|[![nuget](https://badgen.net/nuget/v/NLua?icon=nuget)](https://www.nuget.org/packages/NLua)|\n\n|  | Status | \n| :------ | :------: | \n| ![linux](https://badgen.net/badge/icon/Ubuntu%20Linux%20x64?icon=travis\u0026label\u0026color=orange)   | [![Linux](https://travis-ci.org/NLua/NLua.svg?branch=main)](https://travis-ci.org/NLua/NLua) |\n| ![win](https://badgen.net/badge/icon/Windows?icon=windows\u0026label\u0026color=blue) | [![Build status](https://ci.appveyor.com/api/projects/status/jkqcy9m9k35jwolx?svg=true)](https://ci.appveyor.com/project/viniciusjarina/NLua)|\n| ![mac](https://badgen.net/badge/icon/macOS,iOS,tvOS,catalyst?icon=apple\u0026label\u0026color=purple\u0026list=1) | [![Build Status](https://dev.azure.com/codefoco/NuGets/_apis/build/status/NLua?branchName=main\u0026jobName=Mac)](https://dev.azure.com/codefoco/NuGets/_build/latest?definitionId=65\u0026branchName=main) |\n|![win](https://badgen.net/badge/icon/Windows,.NET?icon=windows\u0026label\u0026list=1) |[![Build Status](https://dev.azure.com/codefoco/NuGets/_apis/build/status/NLua?branchName=main\u0026jobName=Windows)](https://dev.azure.com/codefoco/NuGets/_build/latest?definitionId=65\u0026branchName=main) |\n|![linuxnet](https://badgen.net/badge/icon/Ubuntu%20Linux%20x64?icon=terminal\u0026label\u0026list=1) |[![Build Status](https://dev.azure.com/codefoco/NuGets/_apis/build/status/NLua?branchName=main\u0026jobName=Linux)](https://dev.azure.com/codefoco/NuGets/_build/latest?definitionId=65\u0026branchName=main) |\n\n\nBridge between Lua world and the .NET (compatible with .NET/UWP/Mac/Linux/Android/iOS/tvOS) \n\nBuilding\n---------\n\n\tmsbuild NLua.sln\n\n\n***\n\nNLua allows the usage of Lua from C#, on UWP, Windows, Linux, Mac, iOS , Android.\n\n[![Cmd](https://raw.github.com/NLua/NLua/main/extras/screenshot/NLuaCommand.gif)]()\n\n\nNLua is a fork project of LuaInterface (from Fábio Mascarenhas/Craig Presti).\n\nExample:\nYou can use/instantiate any .NET class without any previous registration or annotation. \n```csharp\n\tpublic class SomeClass\n\t{\n\t\tpublic string MyProperty {get; private set;}\n\t\t\n\t\tpublic SomeClass (string param1 = \"defaulValue\")\n\t\t{\n\t\t\tMyProperty = param1;\n\t\t}\n\t\t\n\t\tpublic int Func1 ()\n\t\t{\n\t\t\treturn 32;\n\t\t}\n\t\t\n\t\tpublic string AnotherFunc (int val1, string val2)\n\t\t{\n\t\t\treturn \"Some String\";\n\t\t}\n\t\t\n\t\tpublic static string StaticMethod (int param)\n\t\t{\n\t\t\treturn \"Return of Static Method\";\n\t\t}\n        }\n\n```\n\n* Using UTF-8 Encoding:\n\nNLua runs on top of [KeraLua](https://github.com/NLua/KeraLua) binding, it encodes the string using the ASCII encoding by default.\nIf you want to use UTF-8 encoding, just set the `Lua.State.Encoding` property to `Encoding.UTF8`:\n\n```csharp\n\nusing (Lua lua = new Lua())\n{\n\tlua.State.Encoding = Encoding.UTF8;\n\tlua.DoString(\"res = 'Файл'\");\n\tstring res = (string)lua[\"res\"];\n\n\tAssert.AreEqual(\"Файл\", res);\n}\n\n```\n\n\n\nCreating Lua state:\n\n```csharp\n\tusing NLua;\n\t\n\tLua state = new Lua ()\n\n```\n\nEvaluating simple expressions:\n```csharp\n\tvar res = state.DoString (\"return 10 + 3*(5 + 2)\")[0] as double;\n\t// Lua can return multiple values, for this reason DoString return a array of objects\n```\n\nPassing raw values to the state:\n\n```csharp\n\tdouble val = 12.0;\n\tstate [\"x\"] = val; // Create a global value 'x' \n\tvar res = (double)state.DoString (\"return 10 + x*(5 + 2)\")[0];\n```\n\n\nRetrieving global values:\n\n```csharp\n\tstate.DoString (\"y = 10 + x*(5 + 2)\");\n\tdouble y = (double) state [\"y\"]; // Retrieve the value of y\n```\n\nRetrieving Lua functions:\n\n```csharp\n\tstate.DoString (@\"\n\tfunction ScriptFunc (val1, val2)\n\t\tif val1 \u003e val2 then\n\t\t\treturn val1 + 1\n\t\telse\n\t\t\treturn val2 - 1\n\t\tend\n\tend\n\t\");\n\tvar scriptFunc = state [\"ScriptFunc\"] as LuaFunction;\n\tvar res = (int)scriptFunc.Call (3, 5).First ();\n\t// LuaFunction.Call will also return a array of objects, since a Lua function\n\t// can return multiple values\n```\n\n##Using the .NET objects.##\n\nPassing .NET objects to the state:\n\n```csharp\n\tSomeClass obj = new SomeClass (\"Param\");\n\tstate [\"obj\"] = obj; // Create a global value 'obj' of .NET type SomeClass \n\t// This could be any .NET object, from BCL or from your assemblies\n```\n\nUsing .NET assemblies inside Lua:\n\nTo access any .NET assembly to create objects, events etc inside Lua you need to ask NLua to use CLR as a Lua package.\nTo do this just use the method `LoadCLRPackage` and use the `import` function inside your Lua script to load the Assembly.\n\n```csharp\n\tstate.LoadCLRPackage ();\n\tstate.DoString (@\" import ('MyAssembly', 'MyNamespace') \n\t\t\t   import ('System.Web') \");\n\t// import will load any .NET assembly and they will be available inside the Lua context.\n```\n\nCreating .NET objects:\nTo create object you only need to use the class name with the `()`.\n\n```csharp\nstate.DoString (@\"\n\t obj2 = SomeClass() -- you can suppress default values.\n\t client = WebClient()\n\t\");\n```\n\nCalling instance methods:\nTo call instance methods you need to use the `:` notation, you can call methods from objects passed to Lua or to objects created inside the Lua context.\n\n```csharp\n\tstate.DoString (@\"\n\tlocal res1 = obj:Func1()\n\tlocal res2 = obj2:AnotherFunc (10, 'hello')\n\tlocal res3 = client:DownloadString('http://nlua.org')\n\t\");\n```\n\nCalling static methods:\nYou can call static methods using only the class name and the `.` notation from Lua.\n\n```csharp\n\tstate.DoString (@\"\n\tlocal res4 = SomeClass.StaticMethod(4)\n\t\");\n```\n\nCalling properties:\nYou can get (or set) any property using  `.` notation from Lua.\n\n```csharp\n\tstate.DoString (@\"\n\tlocal res5 = obj.MyProperty\n\t\");\n```\n\nAll methods, events or property need to be public available, NLua will fail to call non-public members.\n\nIf you are using Xamarin.iOS you need to [`Preserve`](http://developer.xamarin.com/guides/ios/advanced_topics/linker/) the class you want to use inside NLua, otherwise the Linker will remove the class from final binary if the class is not in use.\n\n##Sandboxing##\n\nThere is many ways to sandbox scripts inside your application. I strongly recommend you to use plain Lua to do your sandbox.\nYou can re-write the `import` function before load the user script and if the user try to import a .NET assembly nothing will happen.\n\n```csharp\n\tstate.DoString (@\"\n\t\timport = function () end\n\t\");\n```\n[Lua-Sandbox user-list](http://lua-users.org/wiki/SandBoxes)\n\nUnity Integration\n---------\n1) Build for .Net 2.0 or Download [KeraLua](https://www.nuget.org/packages/KeraLua/) and [NLua](https://www.nuget.org/packages/NLua/) from NuGet (use the `Download package` link)\n2) if Download: change the file extensions from `.nupkg` to `.zip`\n3) create folders in your Unity project's Assets directory `Plugins/KeraLua` and `Plugins/NLua`\n4) extract the `netstandard2.0` contents of those zip files into the newly created unity folders. Your tree should look roughly like this (with KeraLua runtimes customized to your build targets)\n```\nPlugins\n├── KeraLua\n│   ├── LICENSE\n│   ├── LICENSE.meta\n│   ├── lib\n│   │   ├── netstandard2.0\n│   │   │   ├── KeraLua.dll\n│   │   │   ├── KeraLua.dll.meta\n│   │   │   ├── KeraLua.xml\n│   │   │   └── KeraLua.xml.meta\n│   │   └── netstandard2.0.meta\n│   ├── lib.meta\n│   ├── runtimes\n│   │   ├── linux-x64\n│   │   │   ├── native\n│   │   │   │   ├── liblua54.so\n│   │   │   │   └── liblua54.so.meta\n│   │   │   └── native.meta\n│   │   ├── linux-x64.meta\n│   │   ├── osx\n│   │   │   ├── native\n│   │   │   │   ├── liblua54.dylib\n│   │   │   │   └── liblua54.dylib.meta\n│   │   │   └── native.meta\n│   │   ├── osx.meta\n│   │   ├── win-x64\n│   │   │   ├── native\n│   │   │   │   ├── lua54.dll\n│   │   │   │   └── lua54.dll.meta\n│   │   │   └── native.meta\n│   │   ├── win-x64.meta\n│   │   ├── win-x86\n│   │   │   ├── native\n│   │   │   │   ├── lua54.dll\n│   │   │   │   └── lua54.dll.meta\n│   │   │   └── native.meta\n│   │   └── win-x86.meta\n│   └── runtimes.meta\n├── KeraLua.meta\n├── NLua\n│   ├── LICENSE\n│   ├── LICENSE.meta\n│   ├── lib\n│   │   ├── netstandard2.0\n│   │   │   ├── NLua.dll\n│   │   │   └── NLua.dll.meta\n│   │   └── netstandard2.0.meta\n│   └── lib.meta\n└── NLua.meta\n```\n5) Go through each KeraLua runtime liblua54 files in the Unity inspector and set the correct `Platform settings` for both editor and standalone based on the folder. Don't forget to apply\n\n### Notes for unity\n- you will likely want to append to `package.path` you can do it with something like this `lua.DoString(\"package.path = package.path .. \\\";\" + Application.persistentDataPath + \"/?/?.lua;\" + Application.persistentDataPath + \"/?.lua\\\"\");`\n- you will want to expose Debug.Log to lua (and override the `print` function to see lua logs)\n- numbers will come back as `double` type\n- fields set on the lua instance may be null and you will need to handle it\n\n\nCopyright (c) 2025 Vinicius Jarina (viniciusjarina@gmail.com)\n\nNLua 1.4.x\n----------\n\nNLua huge cleanup and refactor after a few years.\n\n* Moved to .NET C# style.\n* Using KeraLua as nuget dependencie.\n* Droped support for KopiLua/Silverlight/Windows Phone\n\n\nNLua 1.3.2\n----------\n\n* Migration to unified Xamarin.iOS (iOS)\n* Added __call method to call Actions/Funcs from Lua as Lua functions.\n* Fixed [#116](https://github.com/NLua/NLua/issues/116) problem accessing base class method\n* Fixed [#117](https://github.com/NLua/NLua/issues/117) problem with same method in class and base class\n* Fixed [#125](https://github.com/NLua/NLua/issues/125) calling methods with params keyword.\n\nNLua 1.3.2\n----------\n* Added support to WinRT (Windows Phone 8)\n* Added support to Unity3D\n* Update Lua 5.2.3 with latest patches\n* Fixed support to Unicode strings (UTF-8)\n* [Fixed x86/x64 issue](https://github.com/NLua/NLua/issues/67). \n* [Fixed overload issue](https://github.com/NLua/NLua/issues/103)\n* [Fixed support to Debug and DebugHook APIs](https://github.com/NLua/NLua/issues/31)\n* [Added support to operators call](https://github.com/NLua/NLua/issues/57)\n* [Fixed access to keys with .](https://github.com/NLua/NLua/issues/68)\n* [Fixed issue with ValueTypes](https://github.com/NLua/NLua/issues/73)\n\nNLua 1.3.0\n----------\n* Update Lua to 5.2.3\n* Update to Xamarin components store. (http://components.xamarin.com/view/NLua)\n\nNLua 1.2.0\n----------\n* NuGet Package (https://www.nuget.org/packages/NLua/)\n* Port to Android 15+ (armeabi, v7a, x86)\n* Updated Lua 5.2.2 (patch 7)\n* Lot of Bug fixes.\n\n\nNLua 1.1.0\n----------\n* Port to WP7 (Thanks to Mangatome)\n* NLua now using Lua 5.2.2\n* Bug fixes.\n\nNLua 1.0.0\n----------\n* Forked from LuaInterface 2.0.4\n* Added iOS support using KeraLua (C# P/Invoke Lua)\n\n\n\u003e###Help NLua###\n\u003e* Contributing\n\u003e  --------------\n\u003e * NLua uses the Mono Code-Style http://www.mono-project.com/Coding_Guidelines .\n\u003e * Please, do not change the line-end or re-indent the code.\n\u003e * Run the tests before you push.\n\u003e * Avoid pushing style changes (unless they are really needed), renaming and move code.\n\nOld History\n-----------\nLuaInterface  \n--------------\n\nCopyright (c) 2003-2006 Fabio Mascarenhas de Queiroz\n\nMaintainer: Craig Presti, craig@vastpark.com\n\nlua51.dll and lua51.exe are Copyright (c) 2005 Tecgraf, PUC-Rio\n\n\nGetting started with NLua:\n-------------------------\n\n* Look at src/TestNLua/TestLua to see an example of usage from C# \n(optionally you can run this from inside the NLua solution using the debugger).  \nAlso provides a good example of how to override .NET methods of Lua and usage of NLua\nfrom within your .NET application.\n\n* Look at samples/testluaform.lua to see examples of how to use \n.NET inside Lua\n\n* More installation and usage instructions in the doc/guide.pdf file.\n\nWhat's new in LuaInterface 2.0.3\n------------------------------\n* Fix: Private methods accessible via LuaInterface\n* Fix: Method overload lookup failures\n* Fix: Lua DoFile memory leaks when file not found (submitted by Paul Moore)\n* Fix: Lua Dispose not freeing memory (submitted by Paul Moore)\n* Fix: Better support for accessing indexers\n* Fix: Parsing error for MBCS characters (qingrui.li)\n* Fix: Dispose errors originating from LuaTable, LuaFunction, LuaUserData\n* Fix: LuaInterface no longer disposes the state when passed one via the overloaded constructor\n* Added: LoadString and LoadFile (submitted by Paul Moore)\n* Added: Overloaded DoString\n* Added: Lua debugging support (rostermeier)\n\n\nWhat's new in LuaInterface 2.0.1\n------------------------------\n* Apparently the 2.0 built binaries had an issue for some users, this is just a rebuild with the lua sources pulled into the LuaInterface.zip\n\nWhat's new in LuaInterface 2.0\n------------------------------\n* The base lua5.1.2 library is now built as entirely manged code.  LuaInterface is now pure CIL\n* Various adapters to connect the older x86 version of lua are no longer needed\n* Performance fixes contributed by Toby Lawrence, Oliver Nemoz and Craig Presti\n\nWhat's new in LuaInterface 1.5.3\n----------\n* Internal lua panics (due to API violations) now throw LuaExceptions into .net\n* If .net code throws an exception into Lua and lua does not handle it, the\noriginal exception is forwarded back out to .net land.\n* Fix bug in the Lua 5.1.1 gmatch C code - it was improperly assuming gmatch\nonly works with tables.\n\nWhat's new in LuaInterface 1.5.2\n----------\n* Overriding C# methods from Lua is fixed (broken with .net 2.0!)\n* Registering static C# functions for Lua is fixed (broken with Lua-5.1.1)\n* Rebuilt to fix linking problems with the binaries included in 1.5.1\n* RegisterFunction has been leaking things onto the stack \n\nWhat's new in LuaInterface 1.5.1\n----------\nFix a serious bug w.r.t. garbage collection - made especially apparent \nwith the new lua5.1 switch: If you were *very* unlucky with timing \nsometimes Lua would loose track of pointers to CLR functions.\n\nWhen I added support for static methods, I allowed the user to use either a \ncolon or a dot to separate the method from the class name.  This was not \ncorrect - it broke disambiguation between overloaded static methods.  \nTherefore, LuaInterface is now more strict: If you want to call a static \nmethod, you must use dot to separate the method name from the class name.  Of\ncourse you can still use a colon if an _instance_ is being used.\n\nStatic method calls are now much faster (due to better caching).\n\nWhat's new in LuaInterface 1.5\n----------\nLuaInterface is now updated to be based on Lua5.1.1.  You can either use \nyour own build/binaries for Lua5.1.1 or use the version distributed here. \n(Lots of thanks to Steffen Itterheim for this work!)\n\nLuaInterface.Lua no longer has OpenLibs etc... The base mechanism for \nlibrary loading for Lua has changed, and we haven't yet broken apart \nthe library loading for LuaInterface.  Instead, all standard Lua libraries\nare automatically loaded at start up.\n\nFixed a bug where calls of some static methods would reference an \ninvalid pointer.\n\nFixed a bug when strings with embedded null characters are passed in or \nout of Lua (Thanks to Daniel N�ri for the report \u0026 fix!)\n \nThe native components in LuaInterface (i.e. Lua51 and the loader) are \nboth built as release builds - to prevent problems loading standard \nwindows libraries.\n\nNote: You do not need to download/build lua-5.1.1.zip unless you want to \nmodify Lua internals (a built version of lua51.dll is included in the \nregular LuaInterface distribution)\n\nWhat's New in LuaInterface 1.4\n----------\n\nNote: Fabio area of interest has moved off in other directions (hopefully only temporarily).\nI've talked with Fabio and he's said he's okay with me doing a new release with various fixes\nI've made over the last few months.  Changes since 1.3:\n\nVisual Studio 2005/.Net 2.0 is supported.\n\nCompat-5.1 is modified to expect backslash as the path seperator.\n\nLuaInterface will now work correctly with Generic C# classes.\n\nCLR inner types are now supported.\n\nFixed a problem where sometimes Lua proxy objects would be associated with the wrong CLR object.\n\nIf a CLR class has an array accessor, the elements can be accessed using the regular Lua indexing \ninterface.\n\nAdd CLRPackage.lua to the samples directory.  This class makes it much easier to automatically \nload referenced assemblies.  In the next release this loading will be automatic.\n\nTo see an quick demonstration of LuaInterface, cd into nlua/samples and then \ntype: ..\\..\\Built\\debug\\LuaRunner.exe testluaform.lua\n\nVarious other minor fixes that I've forgotten.  I'll keep better track next time.\n\nNote: LuaInterface is still based on Lua 5.0.2.  If someone really wants us to upgrade to Lua 5.1\nplease send me a note.  In the mean time, I'm also distributing a version of\nLua 5.0.2 with an appropriate VS 2005 project file.  You do not need to\ndownload this file unless you want to modify Lua internals (a built version\nof lua50.dll is included in the regular LuaInterface distribution)\n\nWhat's New in LuaInterface 1.3\n----------\n\nLuaInterface now works with LuaBinaries Release 2 (http://luabinaries.luaforge.net)\nand Compat-5.1 Release 3 (http://luaforge.net/projects/compat). The loader DLL is now \ncalled luanet.dll, and does not need a nlua.lua file anymore\n(just put LuaInterface.dll in the GAC, luanet.dll in your package.cpath, and\ndo require\"luanet\").\n\nFixed a bug in the treatment of the char type (thanks to Ron Scott).\n\nLuaInterface.dll now has a strong name, and can be put in the GAC (thanks to Ivan Voras).\n\nYou can now use foreach with instances of LuaTable (thanks to Zachary Landau).\n\nThere is an alternate form of loading assemblies and importing types (based on an\nanonymous contribution in the Lua wiki). Check the _alt files in the samples folder.\n\n\nWhat's New in LuaInterface 1.2.1\n--------------------------------\n\nNow checks if two LuaInterface.Lua instances are trying to share the same Lua state,\nand throws an exception if this is the case. Also included readonly clauses in public\nmembers of the Lua and ObjectTranslator classes.\n\nThis version includes the source of LuaInterfaceLoader.dll, with VS.Net 2003 project\nfiles.\n\nWhat's New in LuaInterface 1.2\n------------------------------\n\nLuaInterface now can be loaded as a module, so you can use the lua standalone\ninterpreter to run scripts. Thanks to Paul Winwood for this idea and sample code\nshowing how to load the CLR from a C++ program. The module is \"nlua\". Make\nsure Lua can find nlua.lua, and LuaInterfaceLoader.dll is either in the\ncurrent directory or the GAC. The samples now load LuaInterface as a module, in\nits own namespace.\n\nThe get_method_bysig, get_constructor_bysig and make_object were changed: now you\npass the *names* of the types to them, instead of the types themselves. E.g:\n\n  get_method_bysig(obj,\"method\",\"System.String\")\n\ninstead of\n\n  String = import_type(\"System.String\")\n  get_method_bysig(obj,\"method\",String)\n\nMake sure the assemblies of the types you are passing have been loaded, or the call\nwill fail. The test cases in src/TestLuaInterface/TestLua.cs have examples of the new\nfunctions.\n\n\n\n","funding_links":["https://github.com/sponsors/viniciusjarina","https://www.paypal.me/viniciusjarina","https://www.patreon.com/codefoco","https://paypal.me/viniciusjarina"],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlua%2Fnlua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnlua%2Fnlua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnlua%2Fnlua/lists"}