Logtalk built-in predicate: current_object/1

contents > reference manual > built-in predicates

## `current_object/1`

#### Description

>     current_object(Object)

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

#### Template and modes

>     current_object(?object_identifier)

#### Errors

> Object is neither a variable nor a valid object identifier:
>   `type_error(object_identifier, Object)`

#### Examples

>     | ?- current_object(list).

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