Modules
Last updated
Was this helpful?
Last updated
Was this helpful?
// Module is an extension, which is a combination of between language and implementation.
To use a module, just with a use
keyword.
The above statement will load module and math
identifier will be a local variable. By default, math module return a map that contains static functions and properties.
Using module with another name, or many module have special name, alias is a great way to deal with them.
We have two ways to create a module:
Create a new file named my-module.m.aup
And use it
Run with aup
If module not found, the compiler will stop and show error.
It is not strange at all, because aup is written in C++ 😄
// todo, we'll provide it soon