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
pmoura 11c074d241 Logtalk 2.9.2 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@278 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2002-01-08 00:05:10 +00:00

23 lines
401 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_property(Prop),
writeq(Functor/Arity), write(' - '), writeq(Prop), nl)).
scope_property(public).
scope_property(protected).
scope_property(private).
:- end_category.