Logtalk predicate directive: dynamic/1

contents > reference manual > directives

## `dynamic/1`

#### Description

>     dynamic(Predicate)
>     dynamic(Predicate1, Predicate2, ...)
>     dynamic([Predicate1, Predicate2, ...])

> Declares dynamic predicates. Note that an object can be static and have both static and dynamic predicates.

#### Template and modes

>     dynamic(+predicate_indicator_term)

#### Examples

>     :- dynamic(counter/1).

>     :- dynamic(lives/2, works/2).

>     :- dynamic([db/4, key/2, file/3]).

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