Guide:Importing
Importing
To import new code into Ioke, the method use
should be used. The terminology is that you give "use" a name of a module to include, and if that module has already been included it will not be evaluated again. If it has not been included, use
will try to find the module using several different heuristics. It will add a .ik to the name and try to look up a file of that name - but it will also try to look it up without a .ik, if a full file name has been given. Several different places will be searched, and the exact order and what will be searched can be found by calling the System loadPath
method. This will return a list of all the places that Ioke uses to search for modules. This list can be modified to add more directories to the load path at runtime.
If a module of the specified name can't be found, a condition will be signalled.