Object oriented

private

Start the private section of a file — for internal fields only.

Syntax

private:
    define num x is new;

How she behaves

  • Fields under private: belong to this file. Importers do not get them.
  • Inside a class, private fields and helpers stay behind the door. Use self to reach them.
  • A public function in the same file may still use them.

Example

private:
    define num x is new;
    define num y is new;

See also