• Advertisement
Sign in to follow this  

Importing all functions of a module

This topic is 667 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

I was wondering there is a way to import all functions from module A in module B like you do for example in Python: " from A import * "

 

Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement

#include "FILE_NAME"

 

I think that's what you are looking for. Though you dont have to include it in every file, once included once it is defined in global space (similar to c++). 

Share this post


Link to post
Share on other sites

If you just want to include the code from another script file, then what chasester123 should work just fine.

 

If you on the other hand wish to compile multiple modules, and then allow them to share code then it is currently only possible to import functions individually. Classes can be shared across modules if they are declared as shared.

 

I have plans to make improvements to make it easier for multiple modules to share code, but this is likely going to take a while before it gets implemented.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement