Logtalk built-in predicate: current_protocol/1

contents > reference manual > built-in predicates

## `current_protocol/1`

#### Description

>     current_protocol(Protocol)

> Enumerates, by backtracking, all currently defined protocols. All protocols are found, either static, dynamic, or built-in.

#### Template and modes

>     current_protocol(?protocol_identifier)

#### Errors

> Protocol is neither a variable nor a valid protocol identifier:
>   `type_error(protocol_identifier, Protocol)`

#### Examples

>     | ?- current_protocol(listp).

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