[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua how to call dotnet's function
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 3 Sep 2009 10:43:49 +0200
On Thu, Sep 3, 2009 at 10:27 AM, sagasw<sagasw@gmail.com> wrote:
> 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.
Can you run any of the examples? E.g. hello1.lua
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.