ludic/examples/modules/reg/zeta/index.ludic
Orkuncakilkaya 6cfaaf0bf9 feat(lang): open registry - other modules' defs, in an order imports cannot change
A def from another module into a registry that is not open is refused,
and defs go through visibility (the registry exported, its module in the
definer's uses). Index order: the declaring module's entries, then the
other modules' by module name, each in reading order. A registry entry
is emitted as its own file's code, so what it names is seen from its
own module. Reseed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 04:28:34 +03:00

6 lines
206 B
Text

# zeta/index.ludic - adds an entry to core's open registry; its function stays private to zeta
module zeta uses core
def Systems weather { run: fn weather_run }
function weather_run() -> int {
return 3
}