Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Namespaces

A namespace is essentially a directory from which the naming of all other objects starts, and everything inside that directory is interpreted by Irnix as objects, methods, and contracts. By default it is ~/.local/share/irnix, but you can change it by setting the environment variable IRNIX_NAMESPACE or by passing the flag -n (--namespace) directly:

IRNIX_NAMESPACE=dir irnix e object.method -- World!
irnix e -n dir object.method -- World!

Irnix follows this hierarchy:

  1. -n
  2. IRNIX_NAMESPACE
  3. ~/.local/share/irnix

This means that in the following case:

IRNIX_NAMESPACE=dir1 irnix -n dir2 e object.method -- World!

Irnix will choose dir2 as the namespace.