Changeset 4524 for trunk/manuals

Show
Ignore:
Timestamp:
10/20/08 19:20:18 (3 months ago)
Author:
pmoura
Message:

Added an optimization and security compiler option, "complements", that allows objects to be compiled with support for complementing categories either enabled or disabled. The default value (set in the config files) is "off" (disabled).

Added an optimization and security compiler option, "dynamic_declarations", that allows objects to be compiled with support for dynamic declaration of predicates (using the built-in database methods asserta/1 and assertz/1) either enabled or disabled. The default value (set in the config files) is "off" (disabled).

Updated the "complements" example to use the new "complements" compiler option. Update the "dynpred" example to use the new "dynamic_declarations" compiler option.

Location:
trunk/manuals
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • trunk/manuals/index.html

    r4517 r4524  
    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: October 19, 2008</span> 
     34        <span>Last updated on: October 20, 2008</span> 
    3535    </div> 
    3636    <div class="navbottom"> 
  • trunk/manuals/refman/index.html

    r4517 r4524  
    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: October 19, 2008</span> 
     323        <span>Last updated on: October 20, 2008</span> 
    324324    </div> 
    325325    <div class="navbottom"> 
  • trunk/manuals/refman/methods/asserta1.html

    r4500 r4524  
    2727asserta((Head:-Body))</pre> 
    2828<p> 
    29 Asserts a clause as the first one for an object's dynamic predicate. If the predicate is not already declared, then a dynamic predicate declaration is added to the object. 
     29Asserts a clause as the first one for an object's dynamic predicate. If the predicate is not already declared, then a dynamic predicate declaration is added to the object (assuming that the compiler option <code>dynamic_declarations</code> was switched on when the object was created or compiled). 
    3030</p> 
    3131<p> 
     
    6868    <div class="copyright"> 
    6969        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    70         <span>Last updated on: October 12, 2008</span> 
     70        <span>Last updated on: October 20, 2008</span> 
    7171    </div> 
    7272    <div class="navbottom"> 
  • trunk/manuals/refman/methods/assertz1.html

    r4500 r4524  
    2727assertz((Head:-Body))</pre> 
    2828<p> 
    29 Asserts a clause as the last one for an object's dynamic predicate. If the predicate is not already declared, then a dynamic predicate declaration is added to the object. 
     29Asserts a clause as the last one for an object's dynamic predicate. If the predicate is not already declared, then a dynamic predicate declaration is added to the object (assuming that the compiler option <code>dynamic_declarations</code> was switched on when the object was created or compiled). 
    3030</p> 
    3131<p> 
     
    6868    <div class="copyright"> 
    6969        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    70         <span>Last updated on: October 12, 2008</span> 
     70        <span>Last updated on: October 20, 2008</span> 
    7171    </div> 
    7272    <div class="navbottom"> 
  • trunk/manuals/refman/refman.header

    r4517 r4524  
    3636        <span>http://logtalk.org/</span> 
    3737    </p> 
    38     <p class="date">Last updated on October 19, 2008</p> 
     38    <p class="date">Last updated on October 20, 2008</p> 
    3939</div> 
    4040 
  • trunk/manuals/userman/categories.html

    r4511 r4524  
    6868:- end_category.</pre> 
    6969<p> 
    70 This allows us to add new functionality to existing objects without requiring access or modifications to their source code. Common uses are adding logging or debugging functionality to a set of objects. 
     70This allows us to add new functionality to existing objects without requiring access or modifications to their source code. Common uses are adding logging or debugging functionality to a set of objects. Complemented objects need to be compiled with the <code>complements</code> compiler option switched on. 
    7171</p> 
    7272<p> 
     
    349349    <div class="copyright"> 
    350350        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    351         <span>Last updated on: October 17, 2008</span> 
     351        <span>Last updated on: October 20, 2008</span> 
    352352    </div> 
    353353    <div class="navbottom"> 
  • trunk/manuals/userman/index.html

    r4511 r4524  
    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: October 17, 2008</span> 
     306        <span>Last updated on: October 20, 2008</span> 
    307307    </div> 
    308308    <div class="navbottom"> 
  • trunk/manuals/userman/running.html

    r4481 r4524  
    167167        <dt><code>debug(Option)</code></dt> 
    168168            <dd>Controls the compilation of source files in debug mode (the Logtalk built-in debugger can only be used with files compiled in this mode). Possible option values are <code>on</code> and <code>off</code> (the usual default).</dd> 
     169    </dl> 
     170    <dl> 
     171        <dt><code>complements(Option)</code></dt> 
     172            <dd>Allows objects to be compiled with support for complementing categories turned off in order to improve performance and security. Possible option values are <code>on</code> and <code>off</code> (the usual default). This option can be used on a per-object basis. Note that changing this option is of no consequence for objects already compiled and loaded.</dd> 
     173    </dl> 
     174    <dl> 
     175        <dt><code>dynamic_declarations(Option)</code></dt> 
     176            <dd>Allows objects to be compiled with support for dynamic declaration of new predicates turned off in order to improve performance and security. Possible option values are <code>on</code> and <code>off</code> (the usual default). This option can be used on a per-object basis. Note that changing this option is of no consequence for objects already compiled and loaded.</dd> 
    169177    </dl> 
    170178    <dl> 
     
    521529    <div class="copyright"> 
    522530        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    523         <span>Last updated on: October 4, 2008</span> 
     531        <span>Last updated on: October 20, 2008</span> 
    524532    </div> 
    525533    <div class="navbottom"> 
  • trunk/manuals/userman/userman.header

    r4511 r4524  
    3636        <span>http://logtalk.org/</span> 
    3737    </p> 
    38     <p class="date">Last updated on October 17, 2008</p> 
     38    <p class="date">Last updated on October 20, 2008</p> 
    3939</div> 
    4040