Objects
In Irnix, an object is an entity that contains other objects, methods, and contracts, which we’ll discuss later.
Irnix treats every directory located in a namespace as an object. For example, take the default namespace and create a directory called object inside it:
~/.local/share/irnix
└── object
Now Irnix recognises object as an object that currently has no methods.
Objects can also own other objects. In the file system this simply looks like another directory nested inside one. For instance, create a second object named object2:
~/.local/share/irnix
└── object
└── object2
Naming Objects
Object (directory) names must not contain .. They may start with numbers and can include _ or -.
Any directory that starts with . in the namespace will not be treated as an object, so such folders are convenient for storing additional information and helper files for methods. These directories may even contain executable files, but Irnix will never invoke them directly because a call would look like: object..secret_object.method, which Irnix simply cannot understand.