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

Contracts and Interfaces

Contracts and interfaces are mechanisms that transform Irnix from merely another way to run scripts into a comprehensive, strict, and flexible system.

  • A contract is a method for strictly defining a method’s signature.
  • An interface is an exact copy of OOP interfaces. It allows you to describe an abstract object with methods and easily swap out the concrete implementation.