Logtalk entity directive: op/3

contents > reference manual > directives

## `op/3`

#### Description

>     op(Precedence, Associativity, Operator)

> Declares operators.

#### Template and modes

>     op(+integer, +associativity, +atom_or_atom_list)

#### Examples

>     :- op(950, fx, +).
>     :- op(950, fx, ?).
>     :- op(950, fx, @).
>     :- op(950, fx, -).

previous | glossary | next
Copyright © Paulo Moura — Logtalk.org