lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.