Changeset 4447

Show
Ignore:
Timestamp:
08/25/08 02:03:49 (5 months ago)
Author:
pmoura
Message:

Added a multifile/1 directive for the logtalk_library_path/2 predicate. Minor documentation improvements.

Location:
trunk
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4446 r4447  
    147147% table of library paths 
    148148 
    149 :- dynamic(logtalk_library_path/2).             % logtalk_library_path(Library, Path) 
     149:- multifile(logtalk_library_path/2).           % logtalk_library_path(Library, Path) 
     150:- dynamic(logtalk_library_path/2). 
    150151 
    151152 
  • trunk/CUSTOMIZE.txt

    r4411 r4447  
    1111 
    1212This file contains detailed instructions for customizing your Logtalk  
    13 installation and working environment. Customization is mostly done on  
    14 a per-user basis by editing files on the Logtalk user folder (whose  
    15 path is stored on the LOGTALKUSER environment variable; the folder itself  
    16 can be created by running the "cplgtdirs" shell command). 
     13installation and working environment. Customization is mostly done on a  
     14per-user basis by editing configuration files on the Logtalk user folder  
     15(whose path is stored on the LOGTALKUSER environment variable; this folder  
     16can be (re)created by running the "cplgtdirs" shell command). 
    1717 
    1818 
     
    2121In Logtalk, a library is simply a directory containing source files. Library  
    2222paths can be declared using a dynamic predicate. This allows compiling and  
    23 loading of libraries and library files to be performed without worries about  
    24 library paths. 
     23loading of libraries and library files using the library names instead of the 
     24full library paths. 
    2525 
    2626Inside your Logtalk user folder, you will find a "libpaths" folder containing  
     
    33332. CUSTOMIZING PROLOG CONFIGURATION FILES 
    3434 
    35 Logtalk interfaces with a specific Prolog compiler via a configuration file  
     35Logtalk interfaces with a specific Prolog compiler using a configuration file  
    3636that can be found on the "configs" folder inside your Logtalk user folder. 
    3737These configuration files can be customized by changing the default values  
     
    4242"tmpdir", "portability", "underscore_variables", and the documentation-related 
    4343flags ("xmldocs", "xmldir", "xslfile", "xmlspec", and "xmlsref"). Be sure  
    44 to read the "configs/NOTES.txt" file for Prolog specific notes; some Prolog  
    45 compilers do not support the whole range of compilation flag values.   
     44to read the "configs/NOTES.txt" file for Prolog specific compatibility notes;  
     45some Prolog compilers do not support some of the possible compilation flags  
     46values. 
    4647 
    4748 
  • trunk/manuals/index.html

    r4427 r4447  
    3232    <div class="copyright"> 
    3333        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    34         <span>Last updated on: August 16, 2008</span> 
     34        <span>Last updated on: August 25, 2008</span> 
    3535    </div> 
    3636    <div class="navbottom"> 
  • trunk/manuals/refman/builtins/logtalk_library_path2.html

    r3730 r4447  
    2626<pre>logtalk_library_path(Library, Path)</pre> 
    2727<p> 
    28 Dynamic, user-defined predicate, allowing the declaration of aliases to library paths. Library aliases may also be used on the second argument (using the notation <em>alias(path)</em>). Paths must always end with the path directory separator character (<em>"/"</em>). 
     28Dynamic and multifile user-defined predicate, allowing the declaration of aliases to library paths. Library aliases may also be used on the second argument (using the notation <em>alias(path)</em>). Paths must always end with the path directory separator character (<em>"/"</em>). 
    2929</p> 
    3030 
     
    6565    <div class="copyright"> 
    6666        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    67         <span>Last updated on: May 26, 2007</span> 
     67        <span>Last updated on: August 25, 2008</span> 
    6868    </div> 
    6969    <div class="navbottom"> 
  • trunk/manuals/refman/index.html

    r4384 r4447  
    321321    <div class="copyright"> 
    322322        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    323         <span>Last updated on: July 17, 2008</span> 
     323        <span>Last updated on: August 25, 2008</span> 
    324324    </div> 
    325325    <div class="navbottom"> 
  • trunk/manuals/userman/index.html

    r4427 r4447  
    304304    <div class="copyright"> 
    305305        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/> 
    306         <span>Last updated on: August 16, 2008</span> 
     306        <span>Last updated on: August 25, 2008</span> 
    307307    </div> 
    308308    <div class="navbottom"> 
  • trunk/manuals/userman/programming.html

    r4436 r4447  
    7676 
    7777<p> 
    78 Logtalk defines a <em>library</em> simply as a directory containing source files. Library locations can be specified by asserting clauses to the dynamic predicate <a title="Consult reference manual" href="../refman/builtins/logtalk_library_path2.html"><code>logtalk_library_path/2</code></a>. For example: 
     78Logtalk defines a <em>library</em> simply as a directory containing source files. Library locations can be specified by defining or asserting clauses for the dynamic and multifile predicate <a title="Consult reference manual" href="../refman/builtins/logtalk_library_path2.html"><code>logtalk_library_path/2</code></a>. For example: 
    7979</p> 
    8080<pre>| ?- assertz(logtalk_library_path(shapes, '$LOGTALKUSER/examples/shapes/')). </pre> 
     
    163163    <div class="copyright"> 
    164164        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    165         <span>Last updated on: August 16, 2008</span> 
     165        <span>Last updated on: August 25, 2008</span> 
    166166    </div> 
    167167    <div class="navbottom"> 
  • trunk/RELEASE_NOTES.txt

    r4446 r4447  
    3333    and copied to the generated intermediate Prolog files. 
    3434 
    35     Corrected a set of singleton variable bugs in the Logtalk compiler and  
    36     runtime. Thanks to Joachim Schimpf and Kish Shen work on the improved  
     35    Corrected a set of singleton variable related bugs in the Logtalk compiler 
     36    and runtime. Thanks to Joachim Schimpf and Kish Shen work on the improved  
    3737    singleton variable checking code found on the new ECLiPSe 6.0 compiler. 
    3838 
     
    4040    the implementation of the debugger abort command to use the de-facto  
    4141    standard Prolog built-in predicate abort/0. Corrected a bug that prevented 
    42     the use of the command ignore at the redo port. 
     42    the use of the command "ignore" at the redo port. 
    4343 
    4444    Improved performance of multi-threading applications (specially on MacOS X) 
    4545    when using SWI-Prolog as the back-end compiler by making the lookup caches  
    4646    thread local. 
     47 
     48    Added a multifile/1 directive for the logtalk_library_path/2 predicate. 
    4749 
    4850    Corrected a bug in the verification of portable calls that would fail to