Changeset 4470 for trunk/manuals
- Timestamp:
- 09/22/08 08:18:55 (4 months ago)
- Location:
- trunk/manuals
- Files:
-
- 3 modified
-
index.html (modified) (1 diff)
-
userman/index.html (modified) (1 diff)
-
userman/objects.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manuals/index.html
r4466 r4470 32 32 <div class="copyright"> 33 33 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 34 <span>Last updated on: August 25, 2008</span>34 <span>Last updated on: September 22, 2008</span> 35 35 </div> 36 36 <div class="navbottom"> -
trunk/manuals/userman/index.html
r4447 r4470 304 304 <div class="copyright"> 305 305 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 306 <span>Last updated on: August 25, 2008</span>306 <span>Last updated on: September 22, 2008</span> 307 307 </div> 308 308 <div class="navbottom"> -
trunk/manuals/userman/objects.html
r4270 r4470 194 194 </p> 195 195 <p> 196 Compound terms with the same functor and (usually) the same number of arguments as a parametric object identifier may act as <em>proxies</em> to a parametric object. Proxies may be stored on the database as Prolog facts and be used to represent different instantiations of a parametric object identifier. 196 Compound terms with the same functor and (usually) the same number of arguments as a parametric object identifier may act as <em>proxies</em> to a parametric object. Proxies may be stored on the database as Prolog facts and be used to represent different instantiations of a parametric object identifier. Logtalk provides a convenient notation for accessing proxies represented as Prolog facts when sending a message: 197 </p> 198 <pre>{Proxy}::Message</pre> 199 <p> 200 In this context, the proxy argument is proved as a plain Prolog goal. If successful, the message is sent to the corresponding parametric object. Typically, the proof allows retrieving of parameter instantiations. This notation supports backtracking over the Prolog facts that unify with the proxy term. When this behavior is unwanted, is possible to commit to the first unifying fact by writing: 201 </p> 202 <pre>{Proxy}::(!, Message)</pre> 203 <p> 204 In most cases, however, the use of cuts is not necessary as this construct is usually used with a proxy argument that is partially instantiated in order to unify with a single Prolog fact. 197 205 </p> 198 206 … … 439 447 <div class="copyright"> 440 448 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 441 <span>Last updated on: May 21, 2008</span>449 <span>Last updated on: September 22, 2008</span> 442 450 </div> 443 451 <div class="navbottom">
