Error code · a mistake in the document

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

Gives dt::retired
dharmatiles version="1.0.0"
define lawn {
    dirt
}
tile size="1x1" {
    stack { lawn }
}
Mended, it reads clean
dharmatiles version="1.0.0"
let lawn {
    dirt
}
tile size="1x1" {
    stack { lawn }
}

The rule

A let with a body has param lines and either one entry written bare or one stack. 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 with at= or scattered (scatter count=2 { oak }); any other bare entry, and every stack, names a layer. Several entries are written in a stack, 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). A let has a value or a body, never both, and a body is never empty. The old word for this was define: it is refused (dt::retired) with the fix of writing let over it.

Read it in context: Parts · A let with a body names a thing or a layer, called like an element