1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-08 18:14:21 +03:00
inform7/services/arch-module/Preliminaries/How To Include This Module.w

27 lines
1 KiB
OpenEdge ABL
Raw Normal View History

2020-05-11 22:49:36 +03:00
How To Include This Module.
What to do to make use of the arch module in a new command-line tool.
@h Status.
2020-05-20 02:02:28 +03:00
The arch module provided as one of the "services" suite of modules, which means
2020-05-11 22:49:36 +03:00
that it was built with a view to potential incorporation in multiple tools.
It can be found, for example, in //inform7//, //inbuild// and //arch-test//.
2020-05-20 02:02:28 +03:00
By convention, the modules considered as "services" have no dependencies on
other modules except for //foundation// and other "services" modules.
2020-05-11 22:49:36 +03:00
A tool can import //arch// only if it also imports //foundation//.
@h Importing the module.
We'll use the term "parent" to mean the tool which is importing //arch//,
that is, which will include its code and be able to use it. As with any
imported module,
(*) The contents page of the parent's web must identify and locate the
module:
= (text as Inweb)
Import: somepath/arch
=
(*) The parent must call |ArchModule::start()| just after it starts up, and
|ArchModule::end()| just before it shuts down. (But just after, and just
before, the corresponding calls to //foundation//.)