xebecnan / UniLua

A pure c# implementation of Lua 5.2 focus on compatibility with Unity
MIT License
1.11k stars 292 forks source link

Livecoding? #9

Closed miketucker closed 11 years ago

miketucker commented 11 years ago

Amazing what you've done so far. Was curious if there's any way to recompile during runtime, if i wanted to do livecoding for instance?

xebecnan commented 11 years ago

You could use Load() function to compile code during runtime. ( http://www.lua.org/manual/5.2/manual.html#pdf-load )

public interface ILuaAPI { ...

ThreadStatus Load( ILoadInfo loadinfo, string name, string mode );

... }

On Fri, Jul 26, 2013 at 5:29 PM, Mike Tucker notifications@github.comwrote:

Amazing what you've done so far. Was curious if there's any way to recompile during runtime, if i wanted to do livecoding for instance?

— Reply to this email directly or view it on GitHubhttps://github.com/xebecnan/UniLua/issues/9 .