With LUDIC_DEPS=<file> the compiler records every reference the visibility pass resolves (from module, to module) and every assignment to another module's global. ludic deps prints the modules, dependencies, largest cycle, cross writes and globals written from outside, with --graph, --dot, --writes, --uses MOD, --check FILE and --baseline FILE. Reseed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
205 B
Text
9 lines
205 B
Text
# a/index.ludic - uses b, and writes b's global from outside it
|
|
module a
|
|
export function a_run() -> int {
|
|
b_count = b_count + 1
|
|
return b_run() + c_one()
|
|
}
|
|
export function a_two() -> int {
|
|
return 2
|
|
}
|