Variables

Note

This page is under construction.

Variable typing

NDCA is statically typed, which means that each variable has one type of value it can store. Variable types are automatically inferred based on the values assigned to them.

Variable names

TODO: list reserved words here

Variable assignment

Semantics

Variables use value semantics, which means that modifying a value in one variable does not have an effect on any other variables.

Built-in variables

These variables are automatically available in every program.

this

The state of the current cell being updated. This variable is immutable.

Type:Cell
nbhd

Alias for neighborhood.

Type:Pattern
neighborhood

The pattern of cells surrounding the current cell. This variable is immutable.

Type:Pattern