next up previous contents index
Next: 1.9 Error handling Up: 1.8 Code organization Previous: 1.8.1 Procedures   Contents   Index

1.8.2 Modules

Onyx provides the infrastructure for loadable modules, which can be implemented in Onyx and/or dynamically loaded machine code (shared libraries). See the require and mrequire documentation for details on how to load modules.

When writing a module that is meant as a library of additional functionality, some choices have to be made about how to organize the module. Some of the obvious choices for how to organize the loaded definitions are:

Depending on the nature of the module, any of the above solutions may be the right choice. There are tradeoffs between convenience and cleanliness that should be carefully weighed.


next up previous contents index
Next: 1.9 Error handling Up: 1.8 Code organization Previous: 1.8.1 Procedures   Contents   Index
Jason Evans 2003-01-31