← All docs
cal_to_jd() — internals
Compiler internals for cal_to_jd(): lowering path, type checks, and runtime helpers.
cal_to_jd() — internals
Where it lives
- Signature:
crates/elephc-builtin-contract/src/catalog_surfaces.rs - Lowering:
src/name_resolver/expressions.rs:670 (rewrite_date_procedural_call) - Function symbol:
rewrite_date_procedural_call()
Lowering notes
- Rewritten by the name resolver into a constructor or method call on the corresponding builtin class before type checking.
Semantic descriptor
Shared contract without a registry semantic descriptor.
EIR and runtime boundary
No registry-backed typed runtime target applies.
Signature summary
function cal_to_jd(int $calendar, int $month, int $day, int $year): int
What the type checker enforces
- Arity: takes exactly 4 arguments.
Eval interpreter (magician)
Dispatched as a procedural date/time alias by crates/elephc-magician/src/interpreter/builtins/time/aliases.rs.