Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 532 Bytes

blocks.adoc

File metadata and controls

10 lines (8 loc) · 532 Bytes

Blocks

A feature unique to Spin is the use of blocks. Objects can contain six kinds of blocks: CON, VAR, PUB, PRI, OBJ, and DAT. Each block has its own syntax and allowed keywords, like little mini-languages of their own.

  • CONstant: define values that cannot be changed.

  • VARiable: define values that can be changed.

  • PUBlic: declare public functions.

  • PRIvate: declare private functions.

  • OBJect: include other objects for use by the current one.

  • DATa: include arbitrary data in your object.