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,6 +1,6 @@
|
||||
=================================================================
|
||||
Logtalk - Object oriented extension to Prolog
|
||||
Release 2.17.1
|
||||
Release 2.17.2
|
||||
|
||||
Copyright (c) 1998-2004 Paulo Moura. All Rights Reserved.
|
||||
=================================================================
|
||||
@@ -13,4 +13,13 @@ ph
|
||||
prototype-based version
|
||||
|
||||
ch
|
||||
class-based version
|
||||
class-based version
|
||||
|
||||
Both versions define the following hierarchy of objects:
|
||||
|
||||
shape
|
||||
polygon
|
||||
regular_polygon
|
||||
square
|
||||
q1
|
||||
q2
|
||||
|
@@ -1,17 +1,18 @@
|
||||
=================================================================
|
||||
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 ch.loader utility
|
||||
file (note that the *.loader files are Prolog files).
|
||||
To load all entities in this example compile and load the loader file:
|
||||
|
||||
You will need to also load the objects in the "roots" example.
|
||||
| ?- logtalk_load(loader).
|
||||
|
||||
You will need to consult the following files in the library directory:
|
||||
events.loader, types.loader, and hierarchies.loader. Alternatively, you
|
||||
may load the library/all.loader file to load all library entities.
|
||||
You will need to also load the objects in the roots example.
|
||||
|
||||
You will need to load the following files in the library directory:
|
||||
events_loader, types_loader, and hierarchies_loader. Alternatively,
|
||||
you may load the library all_loader file to load all library entities.
|
||||
|
||||
|
@@ -1,11 +1,20 @@
|
||||
=================================================================
|
||||
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).
|
||||
...
|
||||
|
||||
|
||||
% try some simple queries:
|
||||
|
||||
|
||||
| ?- square::nsides(N).
|
||||
|
||||
! error(
|
||||
|
9
Logtalk/examples/shapes/ch/loader.lgt
Normal file
9
Logtalk/examples/shapes/ch/loader.lgt
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
shape,
|
||||
polygon,
|
||||
regular_polygon,
|
||||
square,
|
||||
q1,
|
||||
q2])).
|
@@ -1,10 +1,11 @@
|
||||
=================================================================
|
||||
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 ph.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).
|
||||
|
@@ -1,11 +1,20 @@
|
||||
=================================================================
|
||||
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).
|
||||
...
|
||||
|
||||
|
||||
% try some simple queries:
|
||||
|
||||
|
||||
| ?- square::nsides(N).
|
||||
|
||||
N = 4
|
||||
|
9
Logtalk/examples/shapes/ph/loader.lgt
Normal file
9
Logtalk/examples/shapes/ph/loader.lgt
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
:- initialization(
|
||||
logtalk_load([
|
||||
shape,
|
||||
polygon,
|
||||
regular_polygon,
|
||||
square,
|
||||
q1,
|
||||
q2])).
|
Reference in New Issue
Block a user