Changeset 5054

Show
Ignore:
Timestamp:
06/30/09 15:10:45 (8 months ago)
Author:
pmoura
Message:

Corrected some spelling and XHTML typos in the User and Reference Manuals.

Location:
trunk/manuals
Files:
15 modified

Legend:

Unmodified
Added
Removed
  • trunk/manuals/glossary.html

    r5033 r5054  
    118118<dd>A request for a service, sent to an object. In more logical terms, a message can be seen as a request for proof construction using an object's predicates.</dd> 
    119119 
    120 <dt id="metainterpreter" class="glossary"><strong>metainterpreter</strong></dt> 
     120<dt id="meta-interpreter" class="glossary"><strong>meta-interpreter</strong></dt> 
    121121<dd>A program capable of running other programs written in the same language.</dd> 
    122122 
     
    205205    <div class="copyright"> 
    206206        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    207         <span>Last updated on: June 12, 2009</span> 
     207        <span>Last updated on: June 30, 2009</span> 
    208208    </div> 
    209209    <div class="navbottom"> 
  • trunk/manuals/index.html

    r5038 r5054  
    3131    <div class="copyright"> 
    3232        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    33         <span>Last updated on: June 21, 2009</span> 
     33        <span>Last updated on: June 30, 2009</span> 
    3434    </div> 
    3535    <div class="navbottom"> 
  • trunk/manuals/refman/builtins/threaded1.html

    r4931 r5054  
    7070    <div class="copyright"> 
    7171        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    72         <span>Last updated on: May 8, 2009</span> 
     72        <span>Last updated on: June 30, 2009</span> 
    7373    </div> 
    7474    <div class="navbottom"> 
    75         <span><a href="../index.html#builtins">previous</a> | <a href="../../glossary.html">glossary</a> | <a href="threaded_once1.html">next</a></span><br/> 
     75        <span><a href="../index.html#builtins">previous</a> | <a href="../../glossary.html">glossary</a> | <a href="threaded_once1_2.html">next</a></span><br/> 
    7676        <span><a href="http://validator.w3.org/check/referer">XHTML</a> + <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></span> 
    7777    </div> 
  • trunk/manuals/refman/directives/uses2.html

    r4621 r5054  
    3030</p> 
    3131<p> 
    32 It is possible to specify a predicate alias using the notation <code>Functor/Arity::Alias/Arity</code>. Aliases may be used either for avoiding conflicts between predicates specificed in several <code>uses/2</code> directives or for giving more meanfingul names considering the using context of the predicates. 
     32It is possible to specify a predicate alias using the notation <code>Functor/Arity::Alias/Arity</code>. Aliases may be used either for avoiding conflicts between predicates specified in several <code>uses/2</code> directives or for giving more meaningful names considering the using context of the predicates. 
    3333</p> 
    3434 
     
    6363    <div class="copyright"> 
    6464        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    65         <span>Last updated on: June 4, 2007</span> 
     65        <span>Last updated on: June 30, 2009</span> 
    6666    </div> 
    6767    <div class="navbottom"> 
  • trunk/manuals/refman/grammar.html

    r5031 r5054  
    763763            <dd>"<code>(</code>" message "<code>,</code>" messages "<code>)</code>" |</dd> 
    764764            <dd>"<code>(</code>" message "<code>;</code>" messages "<code>)</code>" |</dd> 
    765             <dd>"<code>(</code>" message "<code>-></code>" messages "<code>)</code>"</dd> 
     765            <dd>"<code>(</code>" message "<code>-&gt;</code>" messages "<code>)</code>"</dd> 
    766766    </dl> 
    767767    <dl> 
     
    846846    <div class="copyright"> 
    847847        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    848         <span>Last updated on: June 12, 2009</span> 
     848        <span>Last updated on: June 30, 2009</span> 
    849849    </div> 
    850850    <div class="navbottom"> 
  • trunk/manuals/refman/index.html

    r5036 r5054  
    346346    <div class="copyright"> 
    347347        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    348         <span>Last updated on: June 18, 2009</span> 
     348        <span>Last updated on: June 30, 2009</span> 
    349349    </div> 
    350350    <div class="navbottom"> 
  • trunk/manuals/refman/methods/clause2.html

    r4889 r5054  
    2929</p> 
    3030<p> 
    31 This method may be used to enumarete clauses for predicates that are not declared dynamic for dynamic objects provided that the predicates are declared in <em>this</em>. 
     31This method may be used to enumerate clauses for predicates that are not declared dynamic for dynamic objects provided that the predicates are declared in <em>this</em>. 
    3232</p> 
    3333 
     
    6969    <div class="copyright"> 
    7070        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    71         <span>Last updated on: April 29, 2009</span> 
     71        <span>Last updated on: June 30, 2009</span> 
    7272    </div> 
    7373    <div class="navbottom"> 
  • trunk/manuals/refman/refman.header

    r5036 r5054  
    3636        <span>http://logtalk.org/</span> 
    3737    </p> 
    38     <p class="date">Last updated on June 18, 2009</p> 
     38    <p class="date">Last updated on June 30, 2009</p> 
    3939</div> 
    4040 
  • trunk/manuals/userman/categories.html

    r4908 r5054  
    109109 
    110110<p> 
    111 We can find, by backtracking, all defined categories by using the <a title="Consult reference manual" href="../refman/builtins/current_category1.html"><code>current_category/1</code></a> Logtalk built-in predicate with an uninstantiated variable: 
     111We can find, by backtracking, all defined categories by using the <a title="Consult reference manual" href="../refman/builtins/current_category1.html"><code>current_category/1</code></a> Logtalk built-in predicate with a non-instantiated variable: 
    112112</p> 
    113113<pre>| ?- current_category(Category).</pre> 
     
    230230<pre>| ?- implements_protocol(Category, Protocol, Scope).</pre> 
    231231<p> 
    232 Note that, if we use an uninstantiated variable for the first argument, we will need to use the <a title="Consult reference manual" href="../refman/builtins/current_category1.html"><code>current_category/1</code></a> built-in predicate to ensure that the returned entity is a category and not an object. 
     232Note that, if we use a non-instantiated variable for the first argument, we will need to use the <a title="Consult reference manual" href="../refman/builtins/current_category1.html"><code>current_category/1</code></a> built-in predicate to ensure that the returned entity is a category and not an object. 
    233233</p> 
    234234<p> 
     
    355355    <div class="copyright"> 
    356356        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    357         <span>Last updated on: May 3, 2009</span> 
     357        <span>Last updated on: June 30, 2009</span> 
    358358    </div> 
    359359    <div class="navbottom"> 
  • trunk/manuals/userman/index.html

    r5038 r5054  
    282282        <dd><a href="programming.html#programming_cc">Conditional compilation</a><span class="leader"></span><span class="page-ref"><span class="programming_cc"></span></span></dd> 
    283283        <dd><a href="programming.html#programming_errors">Avoiding common errors</a><span class="leader"></span><span class="page-ref"><span class="programming_errors"></span></span></dd> 
    284         <dd><a href="programming.html#programming_style">Coding style guidlines</a><span class="leader"></span><span class="page-ref"><span class="programming_style"></span></span></dd> 
     284        <dd><a href="programming.html#programming_style">Coding style guidelines</a><span class="leader"></span><span class="page-ref"><span class="programming_style"></span></span></dd> 
    285285    <dt><a href="programming.html#programming_session">Running a Logtalk session</a><span class="leader"></span><span class="page-ref"><span class="programming_session"></span></span></dt> 
    286286        <dd><a href="programming.html#programming_starting">Starting Logtalk</a><span class="leader"></span><span class="page-ref"><span class="programming_starting"></span></span></dd> 
    287287        <dd><a href="programming.html#programming_compiling">Compiling and loading your programs</a><span class="leader"></span><span class="page-ref"><span class="programming_compiling"></span></span></dd> 
    288288        <dd><a href="programming.html#programming_flags">Compiler flags</a><span class="leader"></span><span class="page-ref"><span class="programming_flags"></span></span></dd> 
    289         <dd><a href="programming.html#programming_smart">Realoding and smart compilation of source files</a><span class="leader"></span><span class="page-ref"><span class="programming_smart"></span></span></dd> 
     289        <dd><a href="programming.html#programming_smart">Reloading and smart compilation of source files</a><span class="leader"></span><span class="page-ref"><span class="programming_smart"></span></span></dd> 
    290290        <dd><a href="programming.html#programming_batch">Using Logtalk for batch processing</a><span class="leader"></span><span class="page-ref"><span class="programming_batch"></span></span></dd> 
    291291    <dt><a href="programming.html#programming_debugging">Debugging Logtalk programs</a><span class="leader"></span><span class="page-ref"><span class="programming_debugging"></span></span></dt> 
     
    318318    <div class="copyright"> 
    319319        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/> 
    320         <span>Last updated on: June 21, 2009</span> 
     320        <span>Last updated on: June 30, 2009</span> 
    321321    </div> 
    322322    <div class="navbottom"> 
  • trunk/manuals/userman/messages.html

    r4896 r5054  
    2323 
    2424<p> 
    25 Messages allows us to call object predicates. Logtalk uses the same nomenclature found in other object-oriented programming languages such as Smalltalk. Therefore, the terms <em>predicate</em> and <em>method</em> are often used interchangeably when refering to predicates defined inside objects and categories. A message must always match a predicate within the scope of the sender object. 
     25Messages allows us to call object predicates. Logtalk uses the same nomenclature found in other object-oriented programming languages such as Smalltalk. Therefore, the terms <em>predicate</em> and <em>method</em> are often used interchangeably when referring to predicates defined inside objects and categories. A message must always match a predicate within the scope of the sender object. 
    2626</p> 
    2727<p> 
     
    6565 
    6666<p> 
    67 In the Logtalk context, broadcasting is interpreted as the sending of several messages to the same object. This can be achieved by using the message sending method described above. However, for convenience, Logtalk implements an extended syntax for message sending that may improve program readibility in some cases. This extended syntax uses the <code>(,)/2</code>, <code>(;)/2</code>, and <code>(->)/2</code> control constructs. For example, if we wish to send several messages to the same object, we can write: 
     67In the Logtalk context, broadcasting is interpreted as the sending of several messages to the same object. This can be achieved by using the message sending method described above. However, for convenience, Logtalk implements an extended syntax for message sending that may improve program readability in some cases. This extended syntax uses the <code>(,)/2</code>, <code>(;)/2</code>, and <code>(-&gt;)/2</code> control constructs. For example, if we wish to send several messages to the same object, we can write: 
    6868</p> 
    6969<pre>| ?- Object::(Message1, Message2, ...).</pre> 
     
    102102 
    103103<p> 
    104 Every message sent using <a title="Consult reference manual" href="../refman/control/to_object2.html"><code>::/2</code></a> operator generates two events, allowe before and one after the message execution. Messages that are sent using the <a title="Consult reference manual" href="../refman/control/to_self1.html"><code>::/1</code></a> (message to <em>self</em>) operator or the <a title="Consult reference manual" href="../refman/control/super1.html"><code>^^/1</code></a> super mechanism described above do not generate any events. The rational behind this distinction is that messages to <em>self</em> and <em>super</em> calls are only used internally in the definition of methods or to execute additional messages with the same target object (represented by <em>self</em>). In other words, events are only generated when using an object's public interface; they cannot be used to break object encapsulation. 
     104Every message sent using the <a title="Consult reference manual" href="../refman/control/to_object2.html"><code>::/2</code></a> operator generates two events, one before and one after the message execution. Messages that are sent using the <a title="Consult reference manual" href="../refman/control/to_self1.html"><code>::/1</code></a> (message to <em>self</em>) operator or the <a title="Consult reference manual" href="../refman/control/super1.html"><code>^^/1</code></a> super mechanism described above do not generate any events. The rational behind this distinction is that messages to <em>self</em> and <em>super</em> calls are only used internally in the definition of methods or to execute additional messages with the same target object (represented by <em>self</em>). In other words, events are only generated when using an object's public interface; they cannot be used to break object encapsulation. 
    105105</p> 
    106106<p> 
     
    139139</p> 
    140140<p> 
    141 With event-suport turned on, a message sent from a compiled object to another object translates to three predicate calls: 
     141With event-support turned on, a message sent from a compiled object to another object translates to three predicate calls: 
    142142</p> 
    143143<dl> 
     
    210210    <div class="copyright"> 
    211211        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    212         <span>Last updated on: May 1, 2009</span> 
     212        <span>Last updated on: June 30, 2009</span> 
    213213    </div> 
    214214    <div class="navbottom"> 
  • trunk/manuals/userman/objects.html

    r4711 r5054  
    204204 
    205205<p> 
    206 We can find, by backtracking, all defined objects by calling the <a title="Consult reference manual" href="../refman/builtins/current_object1.html"><code>current_object/1</code></a> built-in predicate with an uninstantiated variable: 
     206We can find, by backtracking, all defined objects by calling the <a title="Consult reference manual" href="../refman/builtins/current_object1.html"><code>current_object/1</code></a> built-in predicate with a non-instantiated variable: 
    207207</p> 
    208208<pre>| ?- current_object(Object).</pre> 
     
    394394<pre>| ?- implements_protocol(Object, Protocol, Scope).</pre> 
    395395<p> 
    396 Note that, if we use an uninstantiated variable for the first argument, we will need to use the <a title="Consult reference manual" href="../refman/builtins/current_object1.html"><code>current_object/1</code></a> built-in predicate to ensure that the entity returned is an object and not a category. 
     396Note that, if we use a non-instantiated variable for the first argument, we will need to use the <a title="Consult reference manual" href="../refman/builtins/current_object1.html"><code>current_object/1</code></a> built-in predicate to ensure that the entity returned is an object and not a category. 
    397397</p> 
    398398<p> 
     
    443443    <div class="copyright"> 
    444444        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    445         <span>Last updated on: February 24, 2009</span> 
     445        <span>Last updated on: June 30, 2009</span> 
    446446    </div> 
    447447    <div class="navbottom"> 
  • trunk/manuals/userman/predicates.html

    r5033 r5054  
    300300<p> 
    301301This allows clauses for a predicate to be defined in several objects or categories. This is a directive that should be used with great care. Support for this directive have been added to Logtalk primarily to support migration of Prolog module code. Spreading clauses for a predicate among several Logtalk entities can be handy in special cases but can also make your code difficult to understand and may pose a safety risk (e.g. by allowing an entity to peek inside other entity, breaking scope rules). Moreover, multifile predicates are only fully supported by some back-end Prolog compilers, raising portability concerns. 
     302</p> 
    302303<p> 
    303304Consider the following simple example: 
     
    335336The Logtalk compiler will print a warning if the <code>multifile/1</code> directive is missing. Multifile predicates may also be declared dynamic using the same <code>Entity::Functor/Arity</code> notation (multifile predicates are static by default). 
    336337</p> 
     338<p> 
    337339When a clause of a multifile predicate is a rule, its body is compiled within the context of the object or category containing the clause. This allows clauses for multifile predicates to call local object or category predicates. 
    338340</p> 
     
    397399</p> 
    398400<p> 
    399 Some meta-predicates have meta-arguments which are not goals but closures. Logtalk supports the definition of meta-predicates that are called with closures instead of goals as long as the definition uses the Logtalk built-in predicate <a title="Consult reference manual" href="../refman/methods/call1.html"><code>call/N</code></a> to call the closure with the addtional arguments. For example: 
     401Some meta-predicates have meta-arguments which are not goals but closures. Logtalk supports the definition of meta-predicates that are called with closures instead of goals as long as the definition uses the Logtalk built-in predicate <a title="Consult reference manual" href="../refman/methods/call1.html"><code>call/N</code></a> to call the closure with the additional arguments. For example: 
    400402</p> 
    401403<pre>:- public(all_true/2). 
     
    639641</p> 
    640642<p> 
    641 Term and goal expansion may be used either by calling the <code>expand_term/2</code> and <code>expand_goal/2</code> methods explicitly or by using <em><a class="glossary" title="Go to glossary definition" href="../../glossary.html#hook">hook objects</a></em>. Clauses for the <code>term_expansion/2</code> and <code>goal_expansion/2</code> predicates defined within an object or a category are never in the compilation of the object or the category itself. 
     643Term and goal expansion may be used either by calling the <code>expand_term/2</code> and <code>expand_goal/2</code> methods explicitly or by using <em><a class="glossary" title="Go to glossary definition" href="../glossary.html#hook">hook objects</a></em>. Clauses for the <code>term_expansion/2</code> and <code>goal_expansion/2</code> predicates defined within an object or a category are never in the compilation of the object or the category itself. 
    642644</p> 
    643645 
     
    723725Prolog built-in meta-predicates may only be called locally within objects or categories, i.e. they cannot be used as messages. Compiling calls to non-standard, Prolog built-in meta-predicates can be tricky for two reasons: first, there is no standard way of checking if a built-in predicate is also a meta-predicate and finding out which are its meta-arguments; second, in some cases, the meta-arguments of a meta-predicate are not goals but closures, used for constructing goals. The way the goals are constructed is specific to the meta-predicate and cannot be reliable inferred by the Logtalk compiler. For meta-predicates whose meta-arguments are directly called as goals, the solution is to explicitly declare them in the corresponding Prolog configuration file using the predicate <code>'$lgt_pl_meta-predicate'/2</code>. For example: 
    724726</p> 
    725 <pre>'$lgt_pl_meta_predicate'(*->(::, ::), control_construct). 
     727<pre>'$lgt_pl_meta_predicate'(*-&gt;(::, ::), control_construct). 
    726728'$lgt_pl_meta_predicate'(call_with_depth_limit(::, *, *), predicate).</pre> 
    727729<p> 
     
    732734    <div class="copyright"> 
    733735        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    734         <span>Last updated on: June 12, 2009</span> 
     736        <span>Last updated on: June 30, 2009</span> 
    735737    </div> 
    736738    <div class="navbottom"> 
  • trunk/manuals/userman/protocols.html

    r4625 r5054  
    5757 
    5858<p> 
    59 We can find, by backtracking, all defined protocols by using the <a title="Consult reference manual" href="../refman/builtins/current_protocol1.html"><code>current_protocol/1</code></a> built-in predicate with an uninstantiated variable: 
     59We can find, by backtracking, all defined protocols by using the <a title="Consult reference manual" href="../refman/builtins/current_protocol1.html"><code>current_protocol/1</code></a> built-in predicate with a non-instantiated variable: 
    6060</p> 
    6161<pre>| ?- current_protocol(Protocol).</pre> 
     
    160160<pre>| ?- implements_protocol(ObjectOrCategory, Protocol, Scope).</pre> 
    161161<p> 
    162 Note that, if we use an uninstantiated variable for the first argument, we will need to use the <a title="Consult reference manual" href="../refman/builtins/current_object1.html"><code>current_object/1</code></a> or <a title="Consult reference manual" href="../refman/builtins/current_category1.html"><code>current_category/1</code></a> built-in predicates to identify the kind of entity returned. 
     162Note that, if we use a non-instantiated variable for the first argument, we will need to use the <a title="Consult reference manual" href="../refman/builtins/current_object1.html"><code>current_object/1</code></a> or <a title="Consult reference manual" href="../refman/builtins/current_category1.html"><code>current_category/1</code></a> built-in predicates to identify the kind of entity returned. 
    163163</p> 
    164164 
     
    235235    <div class="copyright"> 
    236236        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    237         <span>Last updated on: December 1, 2008</span> 
     237        <span>Last updated on: June 30, 2009</span> 
    238238    </div> 
    239239    <div class="navbottom"> 
  • trunk/manuals/userman/userman.header

    r5038 r5054  
    3636        <span>http://logtalk.org/</span> 
    3737    </p> 
    38     <p class="date">Last updated on June 21, 2009</p> 
     38    <p class="date">Last updated on June 30, 2009</p> 
    3939</div> 
    4040