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/dynpred/classes.lgt
pmoura 3455276aa2 Logtalk 2.26.2 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1487 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2005-12-24 18:07:41 +00:00

22 lines
300 B
Plaintext

:- object(metaclass, % avoid infinite metaclass regression by
instantiates(metaclass)). % making the class its own metaclass
:- end_object.
:- object(class,
instantiates(metaclass)).
:- public(p1/1).
p1(class).
:- end_object.
:- object(instance,
instantiates(class)).
:- end_object.