Changeset 4576 for trunk/manuals
- Timestamp:
- 11/07/08 08:39:07 (2 months ago)
- Location:
- trunk/manuals/userman
- Files:
-
- 3 modified
-
index.html (modified) (2 diffs)
-
programming.html (modified) (2 diffs)
-
userman.header (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manuals/userman/index.html
r4561 r4576 276 276 <dd><a href="programming.html#programming_libraries">Libraries of source files</a><span class="leader"></span><span class="page-ref"><span class="programming_libraries"></span></span></dd> 277 277 <dd><a href="programming.html#programming_portability">Portable programs</a><span class="leader"></span><span class="page-ref"><span class="programming_portability"></span></span></dd> 278 <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> 278 279 <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> 279 280 <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> … … 298 299 <div class="copyright"> 299 300 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 300 <span>Last updated on: October 31, 2008</span>301 <span>Last updated on: November 7, 2008</span> 301 302 </div> 302 303 <div class="navbottom"> -
trunk/manuals/userman/programming.html
r4566 r4576 48 48 <p> 49 49 Logtalk is compatible with almost all modern Prolog compilers. However, this does not necessarily imply that your Logtalk programs will have the same level of portability. If possible, you should only use in your programs Logtalk built-in predicates and ISO Prolog specified built-in predicates and arithmetic functions. If you need to use built-in predicates (or built-in arithmetic functions) that may not be available in other Prolog compilers, you should try to encapsulate the non-portable code in a small number of objects and provide a portable <strong>interface</strong> for that code through the use of Logtalk protocols. An example will be code that access operating-system specific features. The Logtalk compiler can warn you of the use of non-ISO specified built-in predicates and arithmetic functions by using the <code>portability/1</code> compiler flag. 50 </p> 51 52 <h3 id="programming_cc">Conditional compilation</h3> 53 54 <p> 55 Logtalk supports conditional compilation within source files using the <a title="Consult reference manual" href="../refman/directives/if1.html"><code>if/1</code></a>, <a title="Consult reference manual" href="../refman/directives/elif1.html"><code>elif/1</code></a>, <a title="Consult reference manual" href="../refman/directives/else0.html"><code>else/0</code></a>, and <a title="Consult reference manual" href="../refman/directives/endif0.html"><code>endif/0</code></a> directives. This support is similar to the support found in some Prolog compilers such as ECLiPSe, SWI-Prolog, or YAP. 50 56 </p> 51 57 … … 641 647 <div class="copyright"> 642 648 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 643 <span>Last updated on: October 31, 2008</span>649 <span>Last updated on: November 7, 2008</span> 644 650 </div> 645 651 <div class="navbottom"> -
trunk/manuals/userman/userman.header
r4572 r4576 36 36 <span>http://logtalk.org/</span> 37 37 </p> 38 <p class="date">Last updated on October 31, 2008</p>38 <p class="date">Last updated on November 7, 2008</p> 39 39 </div> 40 40
