You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This statements can be seen as import statements in other programming languages.
To use a module in another module, we will need to add a use statement. To use Std.amy, we will need to add the following statement in our module definition
object Foo
use Std
// other definitions and/or expression
end Foo
To use a single definition from a given module, you will have to use the given syntax
object Foo
use printString from Std
// other definitions and/or expression
end Foo
To use a single definition from a given module with an alias, you will have to use the given syntax
object Foo
use printString as print from Std
// other definitions and/or expression
end Foo
The text was updated successfully, but these errors were encountered:
This statements can be seen as
import
statements in other programming languages.use
statement. To use Std.amy, we will need to add the following statement in our module definitionThe text was updated successfully, but these errors were encountered: