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,12 +1,14 @@
|
||||
=================================================================
|
||||
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 viewpoints.loader utility
|
||||
file (note that the *.loader files are Prolog files).
|
||||
|
||||
To load all entities in this example compile and load the loader file:
|
||||
|
||||
| ?- logtalk_load(loader).
|
||||
|
||||
Example adopted from the paper "Classifying Prototype-Based Programming
|
||||
Languages" by Christophe Dony, Jacques Malenfant and Daniel Bardou.
|
||||
|
||||
@@ -1,11 +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.
|
||||
=================================================================
|
||||
|
||||
|
||||
% start by loading the example:
|
||||
|
||||
| ?- logtalk_load(loader).
|
||||
...
|
||||
|
||||
|
||||
% we can start by asking joe its age:
|
||||
|
||||
|
||||
8
Logtalk/examples/viewpoints/loader.lgt
Normal file
8
Logtalk/examples/viewpoints/loader.lgt
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
joePerson,
|
||||
joeEmployee,
|
||||
joeFilmEnthusiast,
|
||||
joeSportsman,
|
||||
joeChessPlayer])).
|
||||
Reference in New Issue
Block a user