Skip to content

Implement dynamic library loading#39

Draft
EdwardPalmer99 wants to merge 1 commit intomasterfrom
EdwardPalmer99/dlopen
Draft

Implement dynamic library loading#39
EdwardPalmer99 wants to merge 1 commit intomasterfrom
EdwardPalmer99/dlopen

Conversation

@EdwardPalmer99
Copy link
Owner

No description provided.

{
case DoubleFuncDouble:
{
auto func = reinterpret_cast<DoubleFuncDoublePtr>(ptr);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we create a template class where T = some function type to handle this better?

node.isNodeType<ForLoopNode>() ||
node.isNodeType<FunctionNode>());
node.isNodeType<FunctionNode>() ||
node.isNodeType<DynamicLibraryLoader>());
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create some custom way for user to load dynamic libs:

i.e. import "some path" as dylib

dylib.someFunction(arg1, arg2, ...)

-> lookup in dylib for "someFunction" and attempt to perform cast based on arg types and expected return type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant