Logtalk 2.17.2 files.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1076 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.17.1
|
||||
Release 2.17.2
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
To load all objects in this example consult the reflection.loader utility
|
||||
file (note that the *.loader files are Prolog files). Run this example with
|
||||
no other examples loaded at the same time.
|
||||
|
||||
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:
|
||||
|
@@ -1,11 +1,17 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.17.1
|
||||
Release 2.17.2
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the example:
|
||||
|
||||
| ?- logtalk_load(loader).
|
||||
...
|
||||
|
||||
|
||||
% print the (public and protected) interface of each class:
|
||||
|
||||
| ?- (object, abstract_class, class)::print.
|
||||
|
6
Logtalk/examples/reflection/loader.lgt
Normal file
6
Logtalk/examples/reflection/loader.lgt
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
class,
|
||||
abstract_class,
|
||||
object])).
|
Reference in New Issue
Block a user