See Original text in context
multi sub trait_mod:<is>(Routine , :!)
Marks a routine as exported to the rest of the world
import Foo; # makes sub double availablesay double 21; # 42
From inside another file you'd say use Foo;
to load a module and import the exported functions.
See Exporting and Selective Importing Modules for more details.
See Original text in context
multi sub trait_mod:<is>(Mu \type, :!)
Marks a type as being exported, that is, available to external users.
my is export
A user of a module or class automatically gets all the symbols imported that are marked as is export
.
See Exporting and Selective Importing Modules for more details.