PDA

View Full Version : c# - LUA


gvanassche
12-14-2008, 05:13 AM
dear all,

I received some C# code and I would like to have it in LUA. Is there an easy way to do this or to get this done?

thanks for your advice,

g.

Imagine Programming
12-14-2008, 01:46 PM
lua is pretty limited by it self, i don't know what C code you have so i can't say if it's possible. There is no converter if that's what you mean

RizlaUK
12-14-2008, 02:17 PM
C# to lua, not without exporting the c# functions first

Imagine Programming
12-14-2008, 02:45 PM
C# to lua, not without exporting the c# functions first

indeed :) wish it was possible:p

gvanassche
12-27-2008, 07:22 AM
I'm not sure I understand (or I'm sure I don't understand it): what would it take to export the c# functions?

gert

Imagine Programming
12-27-2008, 07:45 AM
Well if you've got some C# functions it's impossible to convert it to Lua. Lua is pretty limited by itself. Why don't you post those functions and we can see if it's possible but i don't think so

bule
12-27-2008, 09:49 AM
Post the code so that the folks here can evaluate it.

RizlaUK
12-28-2008, 07:57 AM
what would it take to export the c# functions?


you embed lua into your c# exe/dll and call the functions from a lua script, you will need to study the lua c api