[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about LuaInterface 2.0
- From: "Robert Raschke" <rtrlists@...>
- Date: Wed, 31 Dec 2008 00:13:58 +0000
On Tue, Dec 30, 2008 at 8:26 PM, Ignacio Burgueño
<ignaciob@inconcertcc.com> wrote:
> Hi. I'd like to use some .net assemblies from Lua and I thought that
> LuaInterface is what I need, so I downloaded version 2.0.1.
> How is it supposed to be used? I need to launch it from an unmodified Lua
> interpreter, so I'd need to do something like:
> require "luainterface"
> ...
>
> But the dll does not export any symbols.
> Is it possible to call CLR code from a vanilla Lua interpreter?
I don't think so. At least not with quite a bit of elbow grease.
LuaInterface runs Lua from inside .NET! (Same holds for LuaJava, where
Lua is invoked from Java.)
Once you have a plain old C Lua state running, it is not easy to
attach a .NET VM. It's much easier to do that the other way round.
This isn't Lua's fault, Lua is designed to be easy to embed; but .NET
isn't.
Robby