World
A world holds entities and the components, tags and pairs on them. mErCS.world creates one.
Every component, tag and pair keeps a bitset of the entities that have it, and the values of a component sit in pages indexed by the entity slot: adding or removing an id sets a bit and a value and never moves the entity.
An error that a method raises for a mistake of its caller (a value set on a tag, a query without terms, an argument that a debug world refuses...) points at the line that called the library: in a hook or a listener, at the line of the hook.
Functions
entity
A new entity. With id, makes that id alive and returns it: the entity of its slot, if it
has another generation, is deleted first (and so is a new entity that the hooks of that
delete make in the slot). An id made alive again has none of the components of its old
life, nor their hooks; the signal listeners of the id hear it again. The next entity of the
slot takes the generation after id, or after the newest generation of the slot when id
is an older one: the ids of the newer generations stay dead.