built-in predicate
current_object/1
ï
Descriptionï
current_object(Object)
Enumerates, by backtracking, all currently defined objects. All objects are found, either static, dynamic or built-in.
Modes and number of proofsï
current_object(?object_identifier) - zero_or_more
Errorsï
Object
is neither a variable nor a valid object identifier:type_error(object_identifier, Object)
Examplesï
% enumerate the defined objects:
| ?- current_object(Object).
Object = user ;
Object = logtalk ;
...