DLL Interfacing
Sepynode can dynamically load DLLs and execute exported functions.
var stddll = LOADDLIB "./../stdlib/stdlib.dll";
EXECDLIBFUNC stddll "type" 10;
println << "Result: " << ExecFunctionReturnVar c<4;
This allows Sepynode to interface with native libraries for performance or system access.
LOADDLIB Keyword
This keyword is used to load a DLL library, it is followed by the file path of the library you want to load.
EXECDLIBFUNC Keyword
This keyword is used to execute a function from a loaded library with LOADDLIB, followed of that is the name of the function, here "type" is used to detect the type of the following token. The result is being stored in the ExecFunctionReturnVar cache. You can use it afterwards in any way you like. The cache is resetted only when a new value gets loaded into it.
ExecFunctionReturnVar cache
This is a Venv/cache, it stores the result of the EXECDLIBFUNC of the selected DLL.
CLEAR_ERFV
You can use this keyboard to clear the current value of ExecFunctionReturnVar, by passing an empty token.