Logtalk built-in predicate: define_events/2

contents > reference manual > built-in predicates

## `define_events/5`

#### Description

>     define_events(Event, Object, Message, Sender, Monitor)

> Defines a new set of events.

#### Template and modes

>     define_events(@event, @object_identifier, @callable, @object_identifier, +object_identifier)

#### Errors

> Event is neither a variable nor a valid event identifier:
>   `type_error(event, Event)`
> Object is neither a variable nor a valid object identifier:
>   `type_error(object_identifier, Object)`
> Message is neither a variable nor a callable term:
>   `type_error(callable, Message)`
> Sender is neither a variable nor a valid object identifier:
>   `type_error(object_identifier, Sender)`
> Monitor is a variable:
>   `instantiation_error`
> Monitor is neither a variable nor a valid object identifier:
>   `type_error(object_identifier, Monitor)`

#### Examples

>     | ?- define_events(_, list, member(_, _), _ , debugger).

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