modus
Menu
On this page

The module calendar_changed

The days of the months of a calendar that a parameter chooses.

The export has the name of the export of the module calendar, and another description: one more parameter. A loader refuses this module as the replacement of calendar: a replacement cannot change a description.

What it is for. It is the negative case of the replacement of an import. replace("calendar", "calendar_changed") is accepted by the root service, which does not read descriptions; the loader then refuses to load agenda, with an error that names the import and the two descriptions. A caller of agenda never calls an export with a parameter that it did not pass.

calendar_changed module with no entry

Hash
fe2d2455ba8e37c65b8032f49d616aee523912716c37a5105650e7914d00337d
Size
12288 bytes
Exports
1
Imports
0
Imported by
0
License
MIT

The days of the months of a calendar that a parameter chooses

FactValue
KindModules with no entry
Sourcesrc/modules/demonstrations/calendar_changed
Boot imageyes: in the boot image, 12288 bytes in this build
Build settingsnone: the defaults of the source
Importsnone
Imported bynone

Neighbours

It imports no module, and no module imports it. The module graph shows it with the other modules that have no edge.

Exports

ExportWhat it does
days_in_month(month: Integer, year: Integer, gregorian: Integer) -> Integergives the count of days of a month of a year: Gregorian when gregorian is not 0, Julian when it is 0

days_in_month

days_in_month(month: , year: , gregorian: ) -> 

days_in_month gives the count of days of a month of a year: Gregorian when gregorian is not 0, Julian when it is 0.

The third parameter is the change that makes its description differ from the description of calendar. A month out of 1 to 12 stops the process on a bounds check.

Parameters
  • month:
  • year:
  • gregorian:
Result
Source
src/modules/demonstrations/calendar_changed/calendar.odin:15

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.