Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Scope-modifiers/Logtalk/scope-modifiers.logtalk
Normal file
14
Task/Scope-modifiers/Logtalk/scope-modifiers.logtalk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
:- public(foo/1). % predicate can be called from anywhere
|
||||
|
||||
:- protected(bar/2). % predicate can be called from the declaring entity and its descendants
|
||||
|
||||
:- private(baz/3). % predicate can only be called from the declaring entity
|
||||
|
||||
:- object(object, % predicates declared in the protocol become private for the object
|
||||
implements(private::protocol)).
|
||||
|
||||
:- category(object, % predicates declared in the protocol become protected for the category
|
||||
implements(protected::protocol)).
|
||||
|
||||
:- protocol(extended, % no change to the scope of the predicates inherited from the extended protocol
|
||||
extends(public::minimal)).
|
||||
Loading…
Add table
Add a link
Reference in a new issue