Importing modules

Describes how to define module interdependence with IMPORT FGL.

With the IMPORT FGL instruction, module symbols such as variables, types and constants can be referenced in the importing module.

The following source example imports the myutils and account modules, and uses the init() and set_account() functions of the imported modules.

The first function call is qualified with the module name - this is optional but required to resolve ambiguities when the same function name is used by different modules:
IMPORT FGL myutils 
IMPORT FGL account 
  CALL myutils.init()
  CALL set_account("CFX4559")

For more details, see IMPORT FGL module.