constant.cycle
Constant's value depends on itself.
Area 3, Logic; not declinable; the next step is usually the agent's.
type Stock = Int { min: 0}constant small_batch: Stock = large_batchconstant large_batch: Stock = small_batch
error large_batch depends on itself
--> main.jadpo:6:31
|6 | constant large_batch: Stock = small_batch | ^^^^^^^^^^^ leads back to it
- reason
- A constant's value is worked out from the constants it reads, and
large_batchreadssmall_batch, which readslarge_batch, so it has no value. - next
- Write
large_batch's value without reading a constant that reads it (agent) - rule
- constant.
cycle - help
- https://jadpo.
dev/docs/errors/constant. cycle
Markdown for agents: /docs/errors/constant.cycle.md.Built from Jadpo main at aee2e8f.