Value.newFunction

Value newFunction(T)(Context context, string name, T callback)

Create a function in context which calls a D callback.

Parameters

contextThe context
nameThe name of the function or null for an anonymous function
callbackThe callback

Returns

New function Value