On 02/21/2013 11:13 AM, Jesse Phillips wrote:
On Thursday, 21 February 2013 at 01:50:27 UTC, 1100110 wrote:
I was playing with LuaD (https://github.com/JakobOvrum/LuaD) and was
disappointed to learn that the only way to call D functions from Lua
is for the lua code to be 'inside' a D module. (string l = "lua goes
here"; or similar)

I don't understand "inside a D module"

void someFun(string content) { ... }

lua["someFun"] = &someFun;

lua.doFile("SomeFileName.lua");


D starts lua, and lua finishes before D.
That fits my definition of 'inside a D file' but I admit I should have chosen my phrasing better.

Try lua starts D, and D finishes before lua.

Reply via email to