Chapter 18 | The core library

This chapter describes the functions provided by the Objective Caml core library module: module `Pervasives`. This module is special in two ways:

- It is automatically linked with the user's object code files by the `ocamlc` command (chapter 8).
- It is automatically ``opened'' when a compilation starts, or when the toplevel system is launched. Hence, it is possible to use unqualified identifiers to refer to the functions provided by the `Pervasives` module, without adding a `open Pervasives` directive.

Conventions

The declarations from the signature of the `Pervasives` module are printed one by one in typewriter font, followed by a short comment. All modules and the identifiers they export are indexed at the end of this report.
Module `Pervasives`: the initially opened module