Difference between revisions of "ImportUtil"

From MiniScript Wiki
Jump to navigation Jump to search
(Initial Page)
 
m
 
Line 16: Line 16:
 
</ms>
 
</ms>
  
 +
[[Category:Sys Modules]]
 
[[Category:Mini Micro]]
 
[[Category:Mini Micro]]
[[Category:Sys Modules]]
+
[[Category:Command-Line_MiniScript]]

Latest revision as of 00:48, 5 April 2025

This system module provides a single global function to help with importing other modules into larger programs. See Import for more information.

Global Function

Name Description
ensureImport Imports a module into the global scope. This ensures that the module is imported only once.


Example

  import "importUtil"
  ensureImport "events"