|
On Thu, Sep 3, 2009 at 10:27 AM, sagasw<sagasw@gmail.com> wrote:Can you run any of the examples? E.g. hello1.lua
> Hi, I try to follow the code in wiki to call dotnet's function in lua.
> But I tried require"luainterface" and require"luanet", they can't work
> correctly.
require 'luanet'
luanet.load_assembly "System"
Console = luanet.import_type "System.Console"
Math = luanet.import_type "System.Math"
Console.WriteLine("sqrt(2) is {0}",Math.Sqrt(2))
What errors do you get?
steve d.