K modules

Apart from startup.k, additional k-files (modules) can be loaded at startup, or while Kon is running.

A module may contain any K-code and variables. It can also contain a function "initModule()" which, if it's present, is called when the modules is loaded.

The syntax for loading a k-file is

loadModule( "filetoload.k", TRUE);
or
loadModule( "filetoload.k", FALSE);
where TRUE tells Kon to schedule loading of the module at startup.

Modules which has been loaded at runtime with the flag "addToPreloadList" set to TRUE, will be placed in the file modules.k.