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/reflection/NOTES
pmoura 0018e82503 Logtalk 2.20.1 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1117 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2004-08-19 13:46:40 +00:00

27 lines
909 B
Plaintext

=================================================================
Logtalk - Object oriented extension to Prolog
Release 2.20.1
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
=================================================================
Run this example with no other examples loaded at the same time.
To load all entities in this example compile and load the loader file:
| ?- logtalk_load(loader).
This folder contains an example that shows how to implement a reflective
class-based system. There are three main classes:
object - root of the inheritance graph
class - default metaclass for all instantiable classes
abstract_class - default metaclass for all abstract classes
Each class inherit all the methods form the other two classes and from
itself (without any inheritance loops of course ;-).
You can find more sophisticated versions of these classes in the roots
example.