DynamicLib.var

Returns the reference to the variable named varName from this dynamic library.

struct DynamicLib
ref @system
T
var
(
T
)
(
in char[] varName
)

Throws

Exception if the variable is not found or has null address.

Examples

dynLib.var!int("i") = 3;
int* j = &dynLib.var!int("j")

Meta