Logtalk 2.29.5 files.

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1858 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
pmoura 2007-03-28 22:44:31 +00:00
parent 9cdf70aa41
commit 4569fca292
313 changed files with 2072 additions and 2498 deletions

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -24,7 +24,7 @@ Inside your Logtalk user folder, you will find a "libpaths" folder containing
a sample file which, when loaded, defines the library paths for the Logtalk a sample file which, when loaded, defines the library paths for the Logtalk
standard library and for all the supplied examples. This file may need to be standard library and for all the supplied examples. This file may need to be
edited to match both your Logtalk installation and your Prolog compiler and edited to match both your Logtalk installation and your Prolog compiler and
operating-system requirements. For details, see the file "libpaths/NOTES". operating-system requirements. For details, see the "libpaths/NOTES.txt" file.
2. CUSTOMIZING PROLOG CONFIGURATION FILES 2. CUSTOMIZING PROLOG CONFIGURATION FILES
@ -38,8 +38,8 @@ Logtalk programs" section of the User Manual. Some of the default flags that
you may want to change include: "smart_compilation", "startup_message", you may want to change include: "smart_compilation", "startup_message",
"portability", "underscore_vars", "altdirs", and the set of documentation- "portability", "underscore_vars", "altdirs", and the set of documentation-
related flags ("xmldocs", "xslfile", "xmlspec", and "xmlsref"). Be sure to related flags ("xmldocs", "xslfile", "xmlspec", and "xmlsref"). Be sure to
read the "configs/NOTES" file for Prolog specific notes; some Prolog compilers read the "configs/NOTES.txt" file for Prolog specific notes; some Prolog
do not support the whole range of compilation flag values. compilers do not support the whole range of compilation flag values.
3. CUSTOMIZING DOCUMENTATION PROCESSING SCRIPTS AND SUPPORTING FILES 3. CUSTOMIZING DOCUMENTATION PROCESSING SCRIPTS AND SUPPORTING FILES
@ -52,12 +52,12 @@ files to modify the layout or style of the resulting PDF/(X)HTML files or to
write new scripts and transformations to generate other formats. You may also write new scripts and transformations to generate other formats. You may also
edit the file "custom.ent" in order to specify XML entities for your personal edit the file "custom.ent" in order to specify XML entities for your personal
data that can be used on Logtalk documenting directives. For details, see the data that can be used on Logtalk documenting directives. For details, see the
file "xml/NOTES". "xml/NOTES.txt" file.
4. ADDING SUPPORT FOR EDITING LOGTALK SOURCE FILES TO TEXT EDITORS 4. ADDING SUPPORT FOR EDITING LOGTALK SOURCE FILES TO TEXT EDITORS
Inside your Logtalk user folder, you will find a "wenv" folder, containing Inside your Logtalk user folder, you will find a "wenv" folder, containing
configuration files for several text editors, which add support for syntax configuration files for several text editors, which add support for syntax
coloring and other editing services of Logtalk source files. For details, highlighting and other text editing services for Logtalk source files.
see the file "wenv/NOTES". For details, see the "wenv/NOTES.txt" file.

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -9,9 +9,9 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
The recommended way of installing Logtalk is to use, whenever possible, one The recommended way of installing Logtalk is to use, whenever possible, one
of the provided installers. This file contains detailed instructions for of the provided installers. This file contains detailed instructions for
manual installation and configuration of Logtalk. You should also consult manual installation and configuration of Logtalk. You should also consult
the "scripts/NOTES" file for a description of a set of shell scripts that the "scripts/NOTES.txt" file for a description of a set of shell scripts
might be used for Logtalk installation on some operating-systems and for that might be used for Logtalk installation on some operating-systems and
easy Logtalk integration with popular Prolog compilers. for easy Logtalk integration with popular Prolog compilers.
Note that the broad compatibility of Logtalk, both with Prolog compilers and Note that the broad compatibility of Logtalk, both with Prolog compilers and
operating-systems, together with all the possible user scenarios, means that operating-systems, together with all the possible user scenarios, means that
@ -48,7 +48,7 @@ for some reason, not feasible or desired).
The "scripts" sub-directory contains shell scripts for easy installation of The "scripts" sub-directory contains shell scripts for easy installation of
Logtalk on MacOS X, Windows, Linux, and Unix-like (POSIX) operating systems Logtalk on MacOS X, Windows, Linux, and Unix-like (POSIX) operating systems
(see the "scripts/NOTES" file for details). (see the "scripts/NOTES.txt" file for details).
>> POSIX systems installation (starting from the Logtalk directory): >> POSIX systems installation (starting from the Logtalk directory):
@ -119,7 +119,7 @@ Each user must make a local copy of the Logtalk user-modifiable files to its
home directory. This setup allows each user to easily and independently home directory. This setup allows each user to easily and independently
customize Logtalk to its needs. These copies can be easily made by instructing customize Logtalk to its needs. These copies can be easily made by instructing
end-users to simply run the shell scripts "cplgtdirs.*" (which are described end-users to simply run the shell scripts "cplgtdirs.*" (which are described
in the "scripts/NOTES" file). in the "scripts/NOTES.txt" file).
>> POSIX systems: >> POSIX systems:
@ -144,8 +144,8 @@ directives for loading other files, such as the Logtalk configuration file
and the Logtalk compiler. The "$LOGTALKHOME/scripts" sub-directory contains and the Logtalk compiler. The "$LOGTALKHOME/scripts" sub-directory contains
several scripts (named "make_*lgt.*") for automating the creation of these several scripts (named "make_*lgt.*") for automating the creation of these
initialization files for some Prolog compilers. In addition, be sure to read initialization files for some Prolog compilers. In addition, be sure to read
the "configs/NOTES" file notes on the Prolog compilers that you intend to use. the "configs/NOTES.txt" file notes on the Prolog compilers that you intend to
There are also "makeall_lgt.*" scripts that try to run all the individual use. There are also "makeall_lgt.*" scripts that try to run all the individual
"make_*lgt.*" scripts: "make_*lgt.*" scripts:
>> POSIX systems: >> POSIX systems:
@ -160,7 +160,7 @@ There are also "makeall_lgt.*" scripts that try to run all the individual
This assumes that your favorite Prolog compilers are supported by the This assumes that your favorite Prolog compilers are supported by the
"make_*lgt.*" scripts. If that is not the case, don't worry: just follow "make_*lgt.*" scripts. If that is not the case, don't worry: just follow
the steps described in the "QUICK_START" file. the steps described in the "QUICK_START.txt" file.
5. CUSTOMIZING LOGTALK 5. CUSTOMIZING LOGTALK

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -10,35 +10,39 @@ Quick start
=========== ===========
Starting up Logtalk
-------------------
1. Install Logtalk by using either the installer provided for your 1. Install Logtalk by using either the installer provided for your
operating-system (when available) or by following the instructions operating-system (when available) or by following the instructions
on the "INSTALL" file. Depending on your operating-system, working on the "INSTALL.txt" file. Depending on your operating-system, working
environment, and favorite Prolog compiler, you may already have a environment, and favorite Prolog compiler, you may already have a
script or a shortcut installed for easily running Logtalk with your script or a shortcut installed for easily running Logtalk with your
favorite Prolog compiler. If so, skip the instructions below for favorite Prolog compiler. In this case, skip the instructions below
starting up Logtalk. for starting up Logtalk and go straight to the instructions on running
the examples.
2. Open the "manuals/index.html" file with a web browser. 2. Open the "manuals/index.html" file with a web browser.
3. Select the "Tutorial" link. This will provide you with a basic 3. Select the "Tutorial" link. This will provide you with a basic
understanding of the main Logtalk concepts. understanding of the main Logtalk concepts.
4. Go back to the "index.html" file and select the "User Manual" 4. Go back to the "index.html" file, select the "User Manual" link,
link and then the Installing and running Logtalk links. This will then the "Installing Logtalk" and "Running and debugging Logtalk
provide you with a basic understanding of how to start Logtalk and programs" links. This will provide you with a basic understanding of
compile and load Logtalk code. how to start Logtalk as well as how to compile and load Logtalk code.
Assuming that Logtalk supports your Prolog compiler: Assuming that Logtalk supports your Prolog compiler:
1. Read the "NOTES" file in the "configs" sub-directory to check if 1. Read the "NOTES.txt" file in the "configs" sub-directory to check if
any patch or workaround is needed for your compiler. any patch or workaround is needed for your compiler.
2. Start your Prolog compiler. 2. Start your Prolog compiler.
3. Change the current working directory of your Prolog session to the 3. Change the current working directory of your Prolog session to the
Logtalk installation directory. If you don't know which predicate to Logtalk installation directory. If you don't know which predicate to
use, check the "configs/NOTES" file or your Prolog compiler reference use, check the "configs/NOTES.txt" file or your Prolog compiler reference
manual. manual.
4. Compile and load the config file for your Prolog compiler. 4. Compile and load the config file for your Prolog compiler.
@ -47,7 +51,7 @@ manual.
sub-directory. sub-directory.
6. Adapt, if needed, the file "libpaths/libpaths.pl" to match your Logtalk 6. Adapt, if needed, the file "libpaths/libpaths.pl" to match your Logtalk
installation, Prolog compiler, and operating-system, and then compile and installation, Prolog compiler, operating-system, and then compile and
load it. load it.
Note that both the configuration files, the compiler/runtime files, and the Note that both the configuration files, the compiler/runtime files, and the
@ -59,23 +63,29 @@ Prolog prompt something like:
| ?- ['configs/foo.config', 'compiler/logtalk.pl', 'libpaths/libpaths.pl']. | ?- ['configs/foo.config', 'compiler/logtalk.pl', 'libpaths/libpaths.pl'].
Replace the file name foo.config with the appropriated config file name for Replace the file name "foo.config" with the appropriate config file name for
your compiler. your compiler.
Now you may try some of the included examples: Running the examples
--------------------
1. Open the examples sub-directory. There you find several sub-directories You may now try some of the provided examples:
with ready to run examples and a NOTES file containing general instructions
and a brief description of each example. Select and open one of the examples
sub-directory.
2. Read the example NOTES file for a description of the example. 1. Open the "examples" sub-directory. There you find several sub-directories
with ready to run examples and a "NOTES.txt" file containing general
instructions and a brief description of each example. Select and open one
of the examples sub-directory.
3. Open the SCRIPT file for instructions on how to load the example and for 2. Read the example "NOTES.txt" file for a description of the example.
sample queries that you may try by copying-and-pasting or dragging-and-droping
them on your Prolog interpreter top-level.
3. Open the "SCRIPT.txt" file for instructions on how to load the example
and for sample queries that you may try by copying-and-pasting them to
your Prolog interpreter top-level.
Writing your own programs
_________________________
Ready to start writing your own programs? Ready to start writing your own programs?
@ -83,11 +93,11 @@ Ready to start writing your own programs?
and debugging Logtalk programs". and debugging Logtalk programs".
2. Take a look at the "wenv" sub-directory. There you will find syntax 2. Take a look at the "wenv" sub-directory. There you will find syntax
configuration files for popular text editors that enable syntax coloring configuration files for popular text editors which enable syntax coloring
and other goodies when editing Logtalk source files. and other text services when editing Logtalk source files.
3. Create a sub-directory with a suitable name to hold all the files of 3. Create a sub-directory with a suitable name to hold all the files of
your application. You may want to add the directory path to the libpaths.pl your application. You may want to add the directory path to the "libpaths.pl"
file mentioned above in order to easily load your application. file mentioned above in order to easily load your application.
4. Copy to this sub-directory a loader file from one of the example 4. Copy to this sub-directory a loader file from one of the example

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -23,11 +23,11 @@ CONTENTS
1. LICENSE 1. LICENSE
The overall copyright and permission notice for Logtalk can be found in the The overall copyright and permission notice for Logtalk can be found
LICENSE file in this directory. Logtalk follows the Artistic License 2.0. in the "LICENSE.txt" file in this directory. Logtalk follows the
The copyright notice and license applies to all files in this release Artistic License 2.0. The copyright notice and license applies to all
(including sources, documentation, and examples) unless otherwise explicitly files in this release (including sources, documentation, and examples)
stated. unless otherwise explicitly stated.
2. HOME OF LOGTALK PACKAGE 2. HOME OF LOGTALK PACKAGE

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -10,6 +10,73 @@ RELEASE NOTES
============= =============
2.29.5 - March 28, 2007
Added a new built-in predicate, "threaded/1", for proving each goal in
a conjunction in its own thread, simplifying common multi-threading
tasks that previously required sequences of calls to the built-in
predicates threaded_call/1 and threaded_exit/1.
Simplified and optimized the implementation of Logtalk multi-threading
support.
Simplified implementation of the database built-in methods. Simplified
caching of dynamic predicate lookups. Improved performance of the
built-in methods retract/1 and retractall/1.
Simplified the code generated when compiling entities in debugging mode.
Corrected a bug in the built-in debugger when processing actions at a
port that implies reading a port action again (e.g. print exception term,
print debugging status, and help options). Allow the debugger command
"skip" to work as the command "creep" in ports other than "call" and
"redo". Added a new debugger command, "ignore". Suspend debugging when
using the "break" debugger command.
Generate a compilation error instead of just printing a warning when
compiling calls to the multi-threading built-in predicates within an
object with no threaded/0 directive present.
Corrected a bug when compiling entities containing synchronization
directives on single-threaded Prolog configurations.
Improving reporting of working directory when loading or compiling source
files by expanding any environment variables occurring in the path.
Added a new compiler option, "reload", for defining the Logtalk behavior
when reloading source files. Valid values are "always" (default value;
defined in the config files) and "skip".
Updated the programming examples to use the new "reload" compiler option
when loading library entities. Simplified loading of example source files
(by updating the utility loader files to automatically load all required
library files).
Updated GNU Prolog config file to take advantage of some built-in list
predicates (requires version 1.2.14 or later); changed the compiler flag
"underscore_vars" value to "dont_care" to avoid spurious warnings with
some examples.
Added a config file for B-Prolog 7.0b1.
Updated the POSIX integration shell scripts to pass along any command
line options to the corresponding Prolog compiler and to prevent some
problems with paths containing spaces.
Much improved syntax coloring and code completion support for the jEdit
text editor.
Updated the "threads/primes" example to use the new "threaded/1" built-in
predicate. Updated the "threads/birthdays" example to better illustrate
the use of the built-in multi-threading predicates. Added a new
multi-threading example, "msort", implementing single-threaded and
multi-threaded versions of the merge sort algorithm.
Expanded the "operators" example to illustrate a simple solution for
making operators local to source files (but global to all entities
defined within the source files).
2.29.4 - February 19, 2007 2.29.4 - February 19, 2007
Added a new library category, "listing", defining listing/0 and Added a new library category, "listing", defining listing/0 and

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -154,3 +154,7 @@ and "synchronized" entity properties implies recompilation of all objects
and categories. and categories.
Logtalk 2.29.2 removes the built-in predicate threaded_discard/1. Logtalk 2.29.2 removes the built-in predicate threaded_discard/1.
Logtalk 2.29.5 adds a new compiler option, "reload", whose default value is
defined in the config files. This makes previous config files incompatible
with this new Logtalk version.

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -9,20 +9,20 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
This folder contains several examples of Logtalk programs. A brief This folder contains several examples of Logtalk programs. A brief
description of each example is included below. description of each example is included below.
Each example folder contains a NOTES file and a loader helper file which Each example folder contains a "NOTES.txt" file and a loader helper
may be used to load all the example entities. In addition, most examples file that may be used to load all the example entities. In addition,
contain a SCRIPT file with instructions on how to load the example and most examples contain a "SCRIPT.txt" file with instructions on how to
sample queries for your to try. load the example and sample queries for your to try.
Most of these examples need objects, protocols, and categories which are Most of these examples need objects, protocols, and categories that
defined in the Logtalk standard library or in other examples. See the NOTES are defined in the Logtalk standard library or in other examples. See
files inside the library folder, plus the NOTES and SCRIPT files inside each the "NOTES.txt" files inside the library folder, plus the "NOTES.txt"
example folder. and "SCRIPT.txt" files inside each example folder.
Some examples may redefine objects already loaded from other examples. Some examples may redefine objects already loaded from other examples.
You may want to restart Logtalk after trying each example. You may want to restart Logtalk after trying each example.
Some of the examples code have been adopted from public available Prolog Some of the examples have been adopted from public available Prolog
code or from known Prolog text books and are copyrighted by the respective code or from known Prolog text books and are copyrighted by the respective
authors. authors.
@ -33,27 +33,28 @@ solutions for deployment code.
All examples are formatted using four spaces tabs. All examples are formatted using four spaces tabs.
By default, compiling an example generates a .xml documenting file for each By default, compiling an example generates a XML documenting file for
compiled entity (object, category, or protocol). See the "xml" folder for each compiled entity (object, category, or protocol). See the "xml"
instructions on how to browse the .xml files for on-line reading or how to folder for instructions on how to browse the XML files for on-line
convert the files to a print-ready format such as PDF. reading or how to convert the files to a print-ready format such as PDF.
Here is a short description of each included example: Here is a short description of each included example:
aliases aliases
example of using the alias/3 predicate directive to provide alternative example of using the alias/3 predicate directive to provide
names to inherited predicates in order to improve readability or to solve alternative names to inherited predicates in order to improve
multi-inheritance conflicts readability or to solve multi-inheritance conflicts
assignvars assignvars
example of using assignable variables in the context of parametric objects example of using assignable variables in the context of parametric
in order to represent object state objects in order to represent object state
benchmarks benchmarks
simple benchmarks for helping measuring performance of Logtalk message simple benchmarks for helping measuring performance of Logtalk
sending between Prolog compilers and for comparing performance of message message sending between Prolog compilers and for comparing
sending calls with predicate calls in plain Prolog performance of message sending calls with predicate calls in
plain Prolog
birds birds
bird identification expert system bird identification expert system
@ -78,16 +79,16 @@ diamonds
(multi-inheritance conflicts and ambiguities) (multi-inheritance conflicts and ambiguities)
dynpred dynpred
example of using some of the built-in database handling methods in example of using some of the built-in database handling methods
order to implement dynamic object state in order to implement dynamic object state
encodings encodings
very simple example of using the new, experimental encoding/1 very simple example of using the new, experimental encoding/1
directive (requires Logtalk to be run with the SWI-Prolog compiler) directive (requires Logtalk to be run with the SWI-Prolog compiler)
engines engines
example of category composition (importation of categories by other example of category composition (importation of categories by
categories) using car engines other categories) using car engines
errors errors
example showing the Logtalk compiler warning and error reporting example showing the Logtalk compiler warning and error reporting
@ -121,8 +122,8 @@ metapredicates
example of using meta-predicates in Logtalk objects example of using meta-predicates in Logtalk objects
metainterpreters metainterpreters
some examples of simple meta-interpreters defined as categories which some examples of simple meta-interpreters defined as categories
may be imported by "database" objects that can be imported by "database" objects
mi mi
simple multi-inheritance examples simple multi-inheritance examples
@ -134,8 +135,8 @@ modules
simple example of compiling Prolog module files as objects simple example of compiling Prolog module files as objects
msglog msglog
example of using events and monitors for recording, replaying, and example of using events and monitors for recording, replaying,
printing user messages and printing user messages
operators operators
example of using operators local to objects and categories example of using operators local to objects and categories
@ -147,9 +148,9 @@ poem
examples adopted from the Ben Staveley-Taylor POEM system examples adopted from the Ben Staveley-Taylor POEM system
points points
example adopted from SICStus Objects documentation; defines a simple example adopted from SICStus Objects documentation; defines
class hierarchy of points illustrating how to use categories as a simple class hierarchy of points illustrating how to use
object components categories as object components
polygons polygons
example of representation and handling of relations using events example of representation and handling of relations using events
@ -172,30 +173,31 @@ relations
constrained relations between objects; used by other examples constrained relations between objects; used by other examples
roots roots
objects, protocols, and categories needed by most of the other examples; objects, protocols, and categories needed by most of the other
illustrates how you can define object creation and abolishing methods, examples; illustrates how you can define object creation and
complete with initialization and termination options abolishing methods, complete with initialization and termination
options
searching searching
state-space searching framework state-space searching framework
(example adopted from Ivan Bratko's "Prolog Programming for Artificial (example adopted from Ivan Bratko's "Prolog Programming for
Intelligence" book) Artificial Intelligence" book)
shapes shapes
simple geometric shapes implemented as both a prototype hierarchy and a simple geometric shapes implemented as both a prototype hierarchy
class hierarchy and a class hierarchy
sicstus sicstus
examples adopted from SICStus Objects documentation examples adopted from SICStus Objects documentation
symdiff symdiff
example of using parametric objects to implement symbolic expression example of using parametric objects to implement symbolic
differentiation and simplification expression differentiation and simplification
threads threads
several simple examples of multi-threading programming several simple examples of multi-threading programming
(requires Logtalk to be run with either YAP or SWI-Prolog) (requires Logtalk to be run with either YAP or SWI-Prolog)
viewpoints viewpoints
example on how to implement property sharing and value sharing with example on how to implement property sharing and value sharing
prototypes with prototypes

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load(aliases)).
[aliases])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[aliases], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,18 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the "assignvars" category: % start by loading the "assignvars" category and the example:
| ?- logtalk_load(library(assignvars)).
...
% now you are ready for loading the example:
| ?- logtalk_load(assignvars(loader)). | ?- logtalk_load(assignvars(loader)).
... ...

View File

@ -1,13 +1,4 @@
:- initialization( :- initialization((
logtalk_load( logtalk_load(library(assignvars), [reload(skip)]),
[fsm3, rectangle3])). logtalk_load([fsm3, rectangle3]))).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[fsm3, rectangle3], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -3,8 +3,4 @@
%:- ensure_loaded(module). %:- ensure_loaded(module).
:- initialization( :- initialization(
logtalk_load([ logtalk_load([benchmark, plain, object, database])).
benchmark,
plain,
object,
database])).

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,19 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the necessary library support files (if not % start by loading the example and the required library files:
% already loaded):
| ?- logtalk_load(library(hierarchies_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(birds(loader)). | ?- logtalk_load(birds(loader)).
... ...

View File

@ -1,15 +1,4 @@
:- initialization( :- initialization((
logtalk_load([ logtalk_load(library(hierarchies_loader), [reload(skip)]),
descriptors, logtalk_load([descriptors, birds, expert]))).
birds,
expert])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[birds], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,11 +1,3 @@
:- initialization( :- initialization(
logtalk_load(bottles)). logtalk_load(bottles)).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(bottles, [events(on), xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,25 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the necessary library and support example files (if not % start by loading the example and the required library files:
% already loaded):
| ?- logtalk_load(library(all_loader)).
...
| ?- logtalk_load(roots(loader)).
...
| ?- logtalk_load(relations(loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(bricks(loader)). | ?- logtalk_load(bricks(loader)).
... ...
@ -27,16 +14,7 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
% create four bricks, all standing on the "ground" (use your imagination... ;-) % create four bricks, all standing on the "ground" (use your imagination... ;-)
| ?- brick::new(a, [position-(8, 1)]). | ?- brick::(new(a, [position-(8, 1)]), new(b, [position-(6, 1)]), new(c, [position-(4, 1)]), new(d, [position-(2, 1)])).
yes
| ?- brick::new(b, [position-(6, 1)]).
yes
| ?- brick::new(c, [position-(4, 1)]).
yes
| ?- brick::new(d, [position-(2, 1)]).
yes yes
% set up ascii stack monitor so we can watch the bricks moving % set up ascii stack monitor so we can watch the bricks moving
@ -47,20 +25,14 @@ yes
% make the stack % make the stack
| ?- brick_stack::add_tuple([c,d]). | ?- brick_stack::(add_tuple([c,d]), add_tuple([b,c]), add_tuple([a,b])).
|.c...... |.c......
|.d...b.a |.d...b.a
--------- ---------
yes
| ?- brick_stack::add_tuple([b,c]).
|.b...... |.b......
|.c...... |.c......
|.d.....a |.d.....a
--------- ---------
yes
| ?- brick_stack::add_tuple([a,b]).
|.a |.a
|.b |.b
|.c |.c

View File

@ -1,13 +1,6 @@
:- initialization( :- initialization((
logtalk_load( logtalk_load(library(all_loader), [reload(skip)]),
[bricks], [events(on)])). logtalk_load(roots(loader), [reload(skip)]),
logtalk_load(relations(loader), [reload(skip)]),
/* logtalk_load(bricks, [events(on)]))).
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[bricks], [events(on), xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load(classvars)).
[classvars])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[classvars], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -16,26 +16,3 @@
faa, faa,
bypass, bypass,
dcgtest])). dcgtest])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[parsep,
calculator,
enigma,
parsetree,
sentences,
tokenizer,
macaddr,
url,
xml,
shell,
walker,
bom,
faa,
bypass,
dcgtest], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load([diamond1, diamond2, diamond3])).
[diamond1, diamond2, diamond3])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[diamond1, diamond2, diamond3], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,17 +1,3 @@
:- initialization( :- initialization(
logtalk_load([ logtalk_load([protos, classes, prototype])).
protos,
classes,
prototype])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[protos,
classes,
prototype], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load([babel, latin])).
[babel, latin])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[babel, latin], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load(engines)).
[engines])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[engines], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,5 +1,5 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load(
[warnings], warnings,
[unknown(warning), misspelt(warning), singletons(warning), plredef(warning), lgtredef(warning), portability(warning), report(on)])). [unknown(warning), misspelt(warning), singletons(warning), plredef(warning), lgtredef(warning), portability(warning), report(on)])).

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -8,7 +8,7 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
% start by loading the example: % start by loading the example:
| ?- logtalk_load([library(term_expansionp), expansion(loader)]). | ?- logtalk_load(expansion(loader)).
... ...

View File

@ -1,9 +1,3 @@
:- initialization(logtalk_load(expansion)). :- initialization(
logtalk_load([library(term_expansionp), expansion])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(logtalk_load(expansion, [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load([ logtalk_load(hello_world)).
hello_world])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[hello_world], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,11 +1,4 @@
:- initialization( :- initialization((
(logtalk_load(hook), logtalk_load(hook),
logtalk_load(object, [hook(hook::hook), xmldocs(on)]))). logtalk_load(object, [hook(hook::hook), xmldocs(on)]))).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(logtalk_load(hooks, [hook(hook::hook), xmldocs(on), xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
@ -19,7 +19,6 @@ Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
public/0 - public public/0 - public
protected/0 - protected protected/0 - protected
private/0 - private private/0 - private
interface/0 - public
yes yes
@ -28,7 +27,6 @@ yes
| ?- prototype1::interface. | ?- prototype1::interface.
interface/0 - public
public/0 - public public/0 - public
protected/0 - protected protected/0 - protected
@ -39,7 +37,6 @@ yes
| ?- prototype2::interface. | ?- prototype2::interface.
interface/0 - public
public/0 - protected public/0 - protected
protected/0 - protected protected/0 - protected
@ -50,7 +47,6 @@ yes
| ?- prototype3::interface. | ?- prototype3::interface.
interface/0 - public
public/0 - private public/0 - private
protected/0 - private protected/0 - private
@ -61,7 +57,6 @@ yes
| ?- descendant1::interface. | ?- descendant1::interface.
interface/0 - public
public/0 - public public/0 - public
protected/0 - protected protected/0 - protected
@ -72,7 +67,6 @@ yes
| ?- descendant2::interface. | ?- descendant2::interface.
interface/0 - public
public/0 - protected public/0 - protected
protected/0 - protected protected/0 - protected
@ -83,8 +77,6 @@ yes
| ?- descendant3::interface. | ?- descendant3::interface.
interface/0 - public
yes yes
@ -95,7 +87,6 @@ yes
public/0 - public public/0 - public
protected/0 - protected protected/0 - protected
private/0 - private private/0 - private
interface/0 - public
yes yes
@ -104,7 +95,6 @@ yes
| ?- instance1::interface. | ?- instance1::interface.
interface/0 - public
public/0 - public public/0 - public
protected/0 - protected protected/0 - protected
@ -115,7 +105,6 @@ yes
| ?- instance2::interface. | ?- instance2::interface.
interface/0 - public
public/0 - protected public/0 - protected
protected/0 - protected protected/0 - protected
@ -126,7 +115,6 @@ yes
| ?- instance3::interface. | ?- instance3::interface.
interface/0 - public
public/0 - private public/0 - private
protected/0 - private protected/0 - private

View File

@ -15,7 +15,8 @@ object predicates.
interface :- interface :-
forall( forall(
(::current_predicate(Functor/Arity), (::current_predicate(Functor/Arity),
functor(Pred, Functor, Arity)), functor(Pred, Functor, Arity),
Pred \= interface),
(::predicate_property(Pred, Prop), (::predicate_property(Pred, Prop),
scope_property(Prop), % we are only interested on scope properties scope_property(Prop), % we are only interested on scope properties
writeq(Functor/Arity), write(' - '), writeq(Prop), nl)). writeq(Functor/Arity), write(' - '), writeq(Prop), nl)).

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load([predicates, interface, prototypes, classes])).
[predicates, interface, prototypes, classes])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[predicates, interface, prototypes, classes], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load(instmethods)).
[instmethods])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[instmethods], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load([ logtalk_load(planner)).
planner])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[planner], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load([sorting, towns, salesman])).
[sorting, towns, salesman])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[sorting, towns, salesman], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -6,14 +6,4 @@
:- op(40, xfx, <=>). :- op(40, xfx, <=>).
:- initialization( :- initialization(
logtalk_load([ logtalk_load(translator)).
translator])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[translator], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,19 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the necessary library support files (if not % start by loading the example and the required library files:
% already loaded):
| ?- logtalk_load(library(hierarchies_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(lpa_faults(loader)). | ?- logtalk_load(lpa_faults(loader)).
... ...

View File

@ -1,13 +1,4 @@
:- initialization( :- initialization((
logtalk_load([ logtalk_load(library(hierarchies_loader), [reload(skip)]),
faults])). logtalk_load(faults))).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[faults], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,19 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the necessary library support example files (if not % start by loading the example and the required library files:
% already loaded):
| ?- logtalk_load(library(types_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(lpa_timetables(loader)). | ?- logtalk_load(lpa_timetables(loader)).
... ...

View File

@ -1,8 +1,4 @@
:- initialization( :- initialization((
logtalk_load([ logtalk_load(library(types_loader), [reload(skip)]),
timetable, logtalk_load([timetable, forms, periods, subjects, teachers]))).
forms,
periods,
subjects,
teachers])).

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load([metainterpreters, database, rules])).
[metainterpreters, database, rules])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[metainterpreters, database], [xmlsref(standalone), rules])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,19 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the necessary library support files (if not % start by loading the example and the required library files:
% already loaded):
| ?- logtalk_load(library(types_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(metapredicates(loader)). | ?- logtalk_load(metapredicates(loader)).
... ...

View File

@ -1,5 +1,5 @@
/* Logtalk meta-predicates accept not only goals but also closures /* Logtalk meta-predicates accept both goals and closures
as meta-arguments as illustrated in this example as meta-arguments as illustrated in this example
*/ */

View File

@ -1,15 +1,4 @@
:- initialization( :- initialization((
logtalk_load([ logtalk_load(library(types_loader), [reload(skip)]),
closures, logtalk_load([closures, metapredicates]))).
metapredicates])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load([
closures,
metapredicates], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,13 +1,3 @@
:- initialization( :- initialization(
logtalk_load( logtalk_load(mi)).
[mi])).
/*
If you intend to use the FOP XSL:FO processor for generating PDF documenting
files, comment the directive above and uncomment the directive below
:- initialization(
logtalk_load(
[mi], [xmlsref(standalone)])).
*/

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,19 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the necessary library support files (if not % start by loading the example and the required library files:
% already loaded):
| ?- logtalk_load(library(types_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(miscellaneous(loader)). | ?- logtalk_load(miscellaneous(loader)).
... ...

View File

@ -1,5 +1,4 @@
:- initialization( :- initialization((
logtalk_load([ logtalk_load(library(types_loader), [reload(skip)]),
hanoi, logtalk_load([hanoi, queens]))).
queens])).

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,7 +1,3 @@
:- initialization( :- initialization(
logtalk_load([ logtalk_load([exports, list, meta, test])).
exports,
list,
meta,
test])).

View File

@ -1,6 +1,6 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================

View File

@ -1,19 +1,12 @@
================================================================= =================================================================
Logtalk - Object oriented extension to Prolog Logtalk - Object oriented extension to Prolog
Release 2.29.4 Release 2.29.5
Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved. Copyright (c) 1998-2007 Paulo Moura. All Rights Reserved.
================================================================= =================================================================
% start by loading the necessary library support files (if not % start by loading the example and the required library files:
% already loaded):
| ?- logtalk_load(library(types_loader)).
...
% now you are ready for loading the example:
| ?- logtalk_load(msglog(loader)). | ?- logtalk_load(msglog(loader)).
... ...

Some files were not shown because too many files have changed in this diff Show More