The module lonely
A module of commands whose import is not in the boot image.
It imports the module test_callee, that the build makes and the boot image does not hold. A loader finds an import only in what the process was granted: it refuses this module with the hash of the missing import.
What it is for. It is the negative case of a load: an import that no grant holds. load("lonely") in the console fails with "error: cannot load lonely" and the error of the load, which names the import test_callee and its hash; no part of lonely runs. A loader never searches a path or another process for a module.
lonely module with no entry
- Hash
c1e0e645f78b18574cb70ccdfa7487f06f97d87afc24771261253515174eeccd- Size
9090 bytes- Exports
1- Imports
1- Imported by
0- License
- MIT
A module of commands whose import is not in the boot image
| Fact | Value |
|---|---|
| Kind | Modules with no entry |
| Source | src/modules/demonstrations/lonely |
| Boot image | yes: in the boot image, 9090 bytes in this build |
| Build settings | none: the defaults of the source |
| Imports | |
| Imported by | none |
Neighbours
What it imports, at its left, and what imports it, at its right: the part of the module graph that touches it.
Exports
| Export | What it does |
|---|---|
twice(x: Integer) -> Integer | gives what apply of the module test_callee gives for the operation 0: two times the integer, plus its count of calls |
twice
twice(x: ) ->
twice gives what apply of the module test_callee gives for the operation 0: two times the integer, plus its count of calls.
It never runs from the boot image: the load of lonely fails first.
Read from the source of the module, as the build reads it to describe the exports (tools/modustool/build/describe.odin).
Integer wire form
A wire form of the module contract: one word of a call. A signed integer of 64 bits, in a register.
