Logtalk reference manual
Glossary

Reference Manual

Grammar

Compilation units
Object definition
Category definition
Protocol definition
Entity relations
Implemented protocols
Extended protocols
Imported categories
Extended objects
Instantiated objects
Specialized objects
Entity scope
Entity identifiers
Object identifiers
Category identifiers
Protocol identifiers
Source file names
Directives
Object directives
Category directives
Protocol directives
Predicate directives
Clauses
Entity properties
Predicate properties

Directives

Source file directives

encoding/1

Entity directives

calls/1
category/1-3
dynamic/0
end_category/0
end_object/0
end_protocol/0
info/1
initialization/1
object/1-5
protocol/1-2
synchronized/0
threaded/0
uses/1

Predicate directives

alias/3
discontiguous/1
dynamic/1
info/2
meta_predicate/1
mode/2
op/3
private/1
protected/1
public/1
synchronized/1
uses/2

Built-in predicates

Enumerating objects, categories and protocols

current_category/1
current_object/1
current_protocol/1

Enumerating objects, categories and protocols properties

category_property/2
object_property/2
protocol_property/2

Creating new objects, categories and protocols

create_category/4
create_object/4
create_protocol/3

Abolishing objects, categories and protocols

abolish_category/1
abolish_object/1
abolish_protocol/1

Objects, categories and protocols relations

extends_object/2-3
extends_protocol/2-3
implements_protocol/2-3
imports_category/2-3
instantiates_class/2-3
specializes_class/2-3

Event handling

abolish_events/5
current_event/5
define_events/5

Multi-threading meta-predicates

threaded_call/1
threaded_once/1
threaded_ignore/1
threaded_race/1
threaded_exit/1
threaded_peek/1
threaded_discard/1

Compiling and loading objects, categories and protocols

logtalk_compile/1
logtalk_compile/2
logtalk_load/1
logtalk_load/2
logtalk_library_path/2

Flags

current_logtalk_flag/2
set_logtalk_flag/2

Others

forall/2
retractall/1

Built-in methods

Local methods

parameter/2
self/1
sender/1
this/1

Reflection methods

current_predicate/1
predicate_property/2

Database methods

abolish/1
asserta/1
assertz/1
clause/2
retract/1
retractall/1

Meta-call methods

call/N

All solutions methods

bagof/3
findall/3
forall/2
setof/3

Event handler methods

before/3
after/3

DCG rules parsing methods

phrase/2
phrase/3

Term expansion methods

expand_term/2
term_expansion/2

Control constructs

Message sending

::/2
::/1
^^/1

Calling external code

{}/1