Changeset 4379 for trunk/manuals/userman/predicates.html
- Timestamp:
- 07/15/08 09:37:48 (4 months ago)
- Files:
-
- 1 modified
-
trunk/manuals/userman/predicates.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manuals/userman/predicates.html
r4213 r4379 144 144 145 145 <p> 146 An object (or category)predicate can be static or dynamic. By default, all object predicates are static. To declare a dynamic predicate we use the <a title="Consult reference manual" href="../refman/directives/dynamic1.html"><code>dynamic/1</code></a> directive:146 An object predicate can be static or dynamic. By default, all object predicates are static. To declare a dynamic predicate we use the <a title="Consult reference manual" href="../refman/directives/dynamic1.html"><code>dynamic/1</code></a> directive: 147 147 </p> 148 148 <pre>:- dynamic(foo/1).</pre> 149 149 <p> 150 This directive may also be used to declare dynamic grammar rule non-terminals. As each Logtalk entity is compiled independently from other entities, this directive must be included in every object or category that contains a definition for the described predicate (even if the predicate declaration is inherited from other entity). If we omit the dynamic declaration then the predicate definition will be compiled to static code. Note that any static object may declare and define dynamic predicates.150 This directive may also be used to declare dynamic grammar rule non-terminals. As each Logtalk entity is compiled independently from other entities, this directive must be included in every object that contains a definition for the described predicate (even if the predicate declaration is inherited from other object or imported from a category). If we omit the dynamic declaration then the predicate definition will be compiled to static code. Note that any static object may declare and define dynamic predicates. 151 151 </p> 152 152 … … 676 676 <div class="copyright"> 677 677 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 678 <span>Last updated on: April 21, 2008</span>678 <span>Last updated on: July 15, 2008</span> 679 679 </div> 680 680 <div class="navbottom">
