dt::retired
A word the language no longer has: it is written with the word that replaced it.
What the program says
dt::retired
× `define` is written `let`
╭─[example.dtile:2:1]
1 │ dharmatiles version="1.0.0"
2 │ define lawn {
· ───┬──
· ╰── the old word
3 │ dirt
╰────
help: `define` is gone: write `let`
explain: https://dharmatiles.healtoletgo.com/e/retired
offline: dharmatiles explain dt::retired
What to do
Write the new word the error names (define is now let).
Broken, then fixed
dt::retireddharmatiles version="1.0.0"
define lawn {
dirt
}
tile size="1x1" {
stack { lawn }
}dharmatiles version="1.0.0"
let lawn {
dirt
}
tile size="1x1" {
stack { lawn }
}The rule
A
letwith a body hasparamlines and either one entry written bare or onestack. The body says what it names: one bare entry that is an unplaced thing (let oak { tree … }) names a thing, so it can be placed withat=or scattered (scatter count=2 { oak }); any other bare entry, and everystack, names a layer. Several entries are written in astack, which is always a layer. It is called like an element; its params are set as properties, and a place (at=) passes through to the elements inside it. A definition can call another. Definitions that call each other in a loop are an error (dt::loop). Alethas a value or a body, never both, and a body is never empty. The old word for this wasdefine: it is refused (dt::retired) with the fix of writingletover it.
Read it in context: Parts · A let with a body names a thing or a layer, called like an element