Download PDF US Letter paper

Transcript
Reference Manual
Built-in predicates
Errors
Object is neither a variable nor a valid object identifier:
type_error(object_identifier, Object)
Examples
| ?- current_object(list).
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).
Enumerating objects, categories and protocols properties
category_property/2
Description
category_property(Category, Property)
Enumerates, by backtracking, the properties associated with the defined categories.
Template and modes
category_property(?category_identifier, ?category_property)
86