Changeset 4474 for trunk/manuals
- Timestamp:
- 09/25/08 19:24:17 (4 months ago)
- Location:
- trunk/manuals
- Files:
-
- 5 modified
-
index.html (modified) (1 diff)
-
refman/control/to_object2.html (modified) (5 diffs)
-
refman/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
r4470 r4474 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: September 2 2, 2008</span>34 <span>Last updated on: September 26, 2008</span> 35 35 </div> 36 36 <div class="navbottom"> -
trunk/manuals/refman/control/to_object2.html
r4384 r4474 25 25 26 26 <pre>Object::Predicate 27 27 {Proxy}::Predicate 28 28 29 (Object1, Object2, ...)::Predicate 29 30 (Object1; Object2; ...)::Predicate … … 33 34 <p> 34 35 Sends a message to an object. The message argument must match a public predicate of the receiver object. When the message corresponds to a protected or private predicate, the call is only valid if the <em>sender</em> matches the predicate scope container. We can also send the same message to either a conjunction or a disjunction of objects or send either a conjunction or disjunction of messages to the same object. 36 </p> 37 <p> 38 The <code>{Proxy}::Predicate</code> syntax construct allows simplified access to parametric object <em>proxies</em>. Its operational semantics is equivalent to <code>once(Proxy), Proxy::Predicate</code> (however, exceptions thrown when proving <code>Proxy</code> are handled by the <code>::/2</code> control construct). 35 39 </p> 36 40 … … 44 48 <dt>Either Object or Predicate is a variable:</dt> 45 49 <dd><code>instantiation_error</code></dd> 50 <dt>Object is not a valid object identifier:</dt> 51 <dd><code>type_error(object_identifier, Object)</code></dd> 46 52 <dt>Predicate is declared private:</dt> 47 53 <dd><code>permission_error(access, private_predicate, Predicate)</code></dd> … … 52 58 <dt>Object does not exist:</dt> 53 59 <dd><code>existence_error(object, Object)</code></dd> 60 </dl> 61 <dl> 62 <dt>Proxy is a variable:</dt> 63 <dd><code>instantiation_error</code></dd> 64 <dt>Proxy is not a valid object identifier:</dt> 65 <dd><code>type_error(object_identifier, Proxy)</code></dd> 66 <dt>The predicate Proxy does not exist in the <em>user</em> pseudo-object:</dt> 67 <dd><code>existence_error(procedure, ProxyFunctor/ProxyArity)</code></dd> 54 68 </dl> 55 69 … … 66 80 <div class="copyright"> 67 81 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 68 <span>Last updated on: July 17, 2008</span>82 <span>Last updated on: September 26, 2008</span> 69 83 </div> 70 84 <div class="navbottom"> -
trunk/manuals/refman/index.html
r4447 r4474 321 321 <div class="copyright"> 322 322 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 323 <span>Last updated on: August 25, 2008</span>323 <span>Last updated on: September 26, 2008</span> 324 324 </div> 325 325 <div class="navbottom"> -
trunk/manuals/userman/index.html
r4470 r4474 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: September 2 2, 2008</span>306 <span>Last updated on: September 26, 2008</span> 307 307 </div> 308 308 <div class="navbottom"> -
trunk/manuals/userman/objects.html
r4470 r4474 198 198 <pre>{Proxy}::Message</pre> 199 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. 200 In this context, the proxy argument is proved as a plain, deterministic Prolog goal. If successful, the message is sent to the corresponding parametric object. Typically, the proof allows retrieving of parameter instantiations. This construct should be used with a proxy argument that is sufficiently instantiated in order to unify with a single Prolog fact. 205 201 </p> 206 202 … … 447 443 <div class="copyright"> 448 444 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 449 <span>Last updated on: September 2 2, 2008</span>445 <span>Last updated on: September 26, 2008</span> 450 446 </div> 451 447 <div class="navbottom">
