Error code · a mistake in the document
dt::define
define takes only a name.
What to do
Write define name { … } with nothing else on the line.
The rule
A
definehasparamlines and onestack. 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. A definition whose stack is one thing is itself a thing, so it can be placed withat=or scattered:scatter count=2 { oak }. Definitions that call each other in a loop are an error (dt::loop).
Read it in context: Parts · A define is a stack with params, called like an element