LuaBoundFunc

The struct used as the wrapper produced by the LuaFunc.bind and LuaFuncWeak.bind functions.

This struct implements opCall so it can be used like a normal function.

struct LuaBoundFunc (
alias LuaFuncT
alias ReturnT
Params...
) {}

Members

Aliases

asDelegate
alias asDelegate = opCall

Allows taking a pointer to the opCall function, so a LUA function can be passed around like a D one!

Functions

opCall
ReturnT opCall(Params params)

Allows this wrapper to be called like a normal function.

Variables

func
LuaFuncT func;

The underlying function

Parameters

LuaFuncT

Either LuaFunc or LuaFuncWeak.

ReturnT

The singular return value (or void) produced by this function.

Params

The parameters that this function takes.

Meta