Is it possible to import from modules at runtime? #16717
Answered
by
larpon
B-Esmaili
asked this question in
Questions and Answers
-
I ran through the documentation but couldn't find something relevant. Is it possible to import functions / types from modules at runtime? If no , do you have any plan to support this feature at the future? |
Beta Was this translation helpful? Give feedback.
Answered by
larpon
Dec 19, 2022
Replies: 1 comment 2 replies
-
It is via dynamic library loading. We have an example here: https://github.com/vlang/v/blob/master/examples/dynamic_library_loading (See the use.v file) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
B-Esmaili
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is via dynamic library loading. We have an example here: https://github.com/vlang/v/blob/master/examples/dynamic_library_loading
(See the use.v file)