This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/Logtalk/examples/inheritance/interface.lgt
2001-06-06 19:40:57 +00:00

23 lines
365 B
Plaintext

:- category(interface).
:- public(interface/0).
:- mode(interface, one).
interface :-
forall(
(::current_predicate(Functor/Arity),
functor(Pred, Functor, Arity)),
(::predicate_property(Pred, Prop), scope(Prop),
writeq(Functor/Arity), write(' - '), writeq(Prop), nl)).
scope(public).
scope(protected).
scope(private).
:- end_category.