Logtalk reference manual
Source file and object directive: initialization/1
Contents > Reference Manual > Directives > initialization/1

## initialization/1

#### Description

    initialization(Goal)

When used within an object, this directive defines a goal to be called immediately after the object has been loaded into memory. When used at a global level within a source file, this directive defines a goal to be called immediately after the compiled source file is loaded into memory.

#### Template and modes

    initialization(@callable)

#### Examples

    :- initialization(init).