Logtalk built-in predicate: object_property/2

contents > reference manual > built-in predicates

## `object_property/2`

#### Description

>     object_property(Object, Property)

> Enumerates, by backtracking, the properties associated with the defined objects.

#### Template and modes

>     object_property(?object_identifier, ?object_property)

#### Errors

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

#### Examples

>     | ?- object_property(list, Property).

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