- Timestamp:
- 05/24/08 11:46:34 (3 months ago)
- Location:
- trunk
- Files:
-
- 12 modified
-
examples/encodings/NOTES.txt (modified) (1 diff)
-
examples/NOTES.txt (modified) (2 diffs)
-
manuals/refman/control/context2.html (modified) (2 diffs)
-
manuals/refman/control/to_object2.html (modified) (2 diffs)
-
manuals/refman/control/to_self1.html (modified) (2 diffs)
-
manuals/refman/directives/alias3.html (modified) (2 diffs)
-
manuals/refman/directives/uses2.html (modified) (2 diffs)
-
manuals/refman/methods/after3.html (modified) (1 diff)
-
manuals/refman/methods/before3.html (modified) (1 diff)
-
manuals/refman/refman.header (modified) (1 diff)
-
manuals/userman/userman.header (modified) (1 diff)
-
scripts/debian/changelog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/encodings/NOTES.txt
r4233 r4276 12 12 directive, which is fully based on the directive with the same name found 13 13 on recent development releases of SWI-Prolog and YAP. Currently, this 14 example requires Logtalk to be run with the SWI-Prolog, YAP, orSICStus14 example requires Logtalk to be run with the SWI-Prolog, YAP, SICStus 15 15 Prolog, or CxProlog compilers. 16 16 17 The following encodings are used in eachsource file:17 The following encodings are used in the source file: 18 18 19 19 asian.lgt - UTF-16 (with a BOM) -
trunk/examples/NOTES.txt
r4233 r4276 96 96 encodings 97 97 very simple example of using the new, experimental encoding/1 98 directive (requires Logtalk to be run with the SWI-Prolog compiler) 98 directive (requires Logtalk to be run with either YAP, SWI-Prolog, 99 CxProlog, or SICStus Prolog) 99 100 100 101 engines … … 185 186 186 187 roots 187 objects, protocols, and categories needed by mostof the other188 objects, protocols, and categories used by some of the other 188 189 examples; illustrates how you can define object creation and 189 190 abolishing methods, complete with initialization and termination -
trunk/manuals/refman/control/context2.html
r3806 r4276 26 26 <pre>Object << Goal</pre> 27 27 <p> 28 Calls a goal within the context of the specified object. Goal is called with the execution context (<em>sender</em>, <em>this</em>, and <em>self</em>) set to Object. Goal may need to be written within brackets to avoid parsing errors due to operator clashes. This control construct is mainly used for debugging and for writing object unit tests. 28 Calls a goal within the context of the specified object. Goal is called with the execution context (<em>sender</em>, <em>this</em>, and <em>self</em>) set to Object. Goal may need to be written within brackets to avoid parsing errors due to operator clashes. This control construct is mainly used for debugging and for writing object unit tests. This control construct can only be used when the read-only compiler option <code>context_switching_calls</code> is set to <code>allow</code>. Set this compiler option to <code>forbid</code> to disable this control construct. 29 29 </p> 30 30 … … 56 56 <div class="copyright"> 57 57 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 58 <span>Last updated on: June 8, 2007</span>58 <span>Last updated on: May 23, 2008</span> 59 59 </div> 60 60 <div class="navbottom"> -
trunk/manuals/refman/control/to_object2.html
r3560 r4276 25 25 26 26 <pre>Object::Predicate 27 27 28 28 (Object1, Object2, ...)::Predicate 29 30 29 (Object1; Object2; ...)::Predicate 31 30 32 31 Object::(Predicate1, Predicate2, ...) 33 34 32 Object::(Predicate1; Predicate2; ...)</pre> 35 33 <p> 36 Sends a message to an object. The message argument must match a public predicate of the receiver object. We can also send the same message to a set of objects or a set of messages to the same object. The "<code>,</code>" and "<code>;</code>" in the list have the usual Prolog meaning.34 Sends a message to an object. The message argument must match a public predicate of the receiver object. 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. 37 35 </p> 38 36 … … 68 66 <div class="copyright"> 69 67 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 70 <span>Last updated on: October 26, 2006</span>68 <span>Last updated on: May 23, 2008</span> 71 69 </div> 72 70 <div class="navbottom"> -
trunk/manuals/refman/control/to_self1.html
r3560 r4276 27 27 28 28 ::(Predicate1, Predicate2, ...) 29 30 29 ::(Predicate1; Predicate2; ...)</pre> 31 30 <p> 32 Send a message to <a class="glossary" title="Go to glossary definition" href="../../glossary.html#self"> self</a>. Only used in the body of a predicate definition. The argument should match a public or protected predicate of <a class="glossary" title="Go to glossary definition" href="../../glossary.html#self">self</a>. It may also match a private predicate if the predicate is within the scope of the object where the method making the call is defined, if imported from a category, if used from inside a category, or when using private inheritance. We can also send a set of messages to self. The "<code>,</code>" and "<code>;</code>" in the list have the usual Prolog meaning.31 Send a message to <a class="glossary" title="Go to glossary definition" href="../../glossary.html#self"><em>self</em></a>. Only used in the body of a predicate definition. The argument should match a public or protected predicate of <a class="glossary" title="Go to glossary definition" href="../../glossary.html#self"><em>self</em></a>. It may also match a private predicate if the predicate is within the scope of the object where the method making the call is defined, if imported from a category, if used from inside a category, or when using private inheritance. We can also send a either a conjunction or a disjunction of messages to <em>self</em>. 33 32 </p> 34 33 … … 58 57 <div class="copyright"> 59 58 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 60 <span>Last updated on: October 26, 2006</span>59 <span>Last updated on: May 23, 2008</span> 61 60 </div> 62 61 <div class="navbottom"> -
trunk/manuals/refman/directives/alias3.html
r3560 r4276 27 27 alias(Entity, NonTerminal, Alias)</pre> 28 28 <p> 29 Declares predicate and grammar rule non-terminal aliases. A predicate (non-terminal) alias is an alternative name for a predicate (non-terminal) declared or defined in an implemented protocol, an imported category, an extended prototype, an instantiated class, or a specialized class. Predicate alias may be used to solve conflicts between imported or inherited predicates. This directive may be used in objects, protocols, and categories.29 Declares predicate and grammar rule non-terminal aliases. A predicate (non-terminal) alias is an alternative name for a predicate (non-terminal) declared or defined in an extended protocol, an implemented protocol, an extended category, an imported category, an extended prototype, an instantiated class, or a specialized class. Predicate alias may be used to solve conflicts between imported or inherited predicates. This directive may be used in objects, protocols, and categories. 30 30 </p> 31 31 … … 46 46 <div class="copyright"> 47 47 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 48 <span>Last updated on: October 26, 2006</span>48 <span>Last updated on: May 23, 2008</span> 49 49 </div> 50 50 <div class="navbottom"> -
trunk/manuals/refman/directives/uses2.html
r3739 r4276 45 45 foo :- 46 46 ..., 47 findall(X, member(X, L), A), % the same as :findall(X, list::member(X, L), A)48 append(A, B, C), % the same as :list::append(A, B, C)47 findall(X, member(X, L), A), % the same as findall(X, list::member(X, L), A) 48 append(A, B, C), % the same as list::append(A, B, C) 49 49 ...</pre> 50 50 <p> … … 56 56 btree_to_queue :- 57 57 ..., 58 new_btree(Tree), % the same as :btrees::new(Tree)59 new_queue(Queue), % the same as :queues::new(Queue)58 new_btree(Tree), % the same as btrees::new(Tree) 59 new_queue(Queue), % the same as queues::new(Queue) 60 60 ...</pre> 61 61 -
trunk/manuals/refman/methods/after3.html
r3845 r4276 43 43 <h4>Examples</h4> 44 44 45 <pre>after(Object, Message, Sender) :- 46 writeq(Object), write('::'), writeq(Message), 47 write(' from '), writeq(Sender), nl.</pre> 45 <pre>:- object(..., 46 implements(monitoring), 47 ...). 48 49 after(Object, Message, Sender) :- 50 writeq(Object), write('::'), writeq(Message), 51 write(' from '), writeq(Sender), nl.</pre> 48 52 49 53 <div class="footer"> 50 54 <div class="copyright"> 51 55 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 52 <span>Last updated on: September 15, 2007</span>56 <span>Last updated on: May 23, 2008</span> 53 57 </div> 54 58 <div class="navbottom"> -
trunk/manuals/refman/methods/before3.html
r3845 r4276 43 43 <h4>Examples</h4> 44 44 45 <pre>before(Object, Message, Sender) :- 46 writeq(Object), write('::'), writeq(Message), 47 write(' from '), writeq(Sender), nl.</pre> 45 <pre>:- object(..., 46 implements(monitoring), 47 ...). 48 49 before(Object, Message, Sender) :- 50 writeq(Object), write('::'), writeq(Message), 51 write(' from '), writeq(Sender), nl.</pre> 48 52 49 53 <div class="footer"> 50 54 <div class="copyright"> 51 55 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 52 <span>Last updated on: September 15, 2007</span>56 <span>Last updated on: May 23, 2008</span> 53 57 </div> 54 58 <div class="navbottom"> -
trunk/manuals/refman/refman.header
r4233 r4276 36 36 <span>http://logtalk.org/</span> 37 37 </p> 38 <p class="date">Last updated on April 18, 2008</p>38 <p class="date">Last updated on May 23, 2008</p> 39 39 </div> 40 40 -
trunk/manuals/userman/userman.header
r4233 r4276 36 36 <span>http://logtalk.org/</span> 37 37 </p> 38 <p class="date">Last updated on April 21, 2008</p>38 <p class="date">Last updated on May 23, 2008</p> 39 39 </div> 40 40 -
trunk/scripts/debian/changelog
r4233 r4276 3 3 * Initial Release. 4 4 5 -- Paulo Moura <pmoura@logtalk.org> Thu April 2901:00:00 WET 20085 -- Paulo Moura <pmoura@logtalk.org> Thu May 26 01:00:00 WET 2008
