Changeset 4213 for trunk/manuals/userman/programming.html
- Timestamp:
- 04/21/08 09:25:05 (8 months ago)
- Files:
-
- 1 modified
-
trunk/manuals/userman/programming.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/manuals/userman/programming.html
r4039 r4213 99 99 100 100 <p> 101 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 defined built-in predicates. If you need to use built-in predicates 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 defined built-in predicates by using the <code>portability/1</code> compiler flag.101 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. 102 102 </p> 103 103 … … 123 123 </p> 124 124 125 <h3 id="programming_style">Coding style guid lines</h3>125 <h3 id="programming_style">Coding style guidelines</h3> 126 126 127 127 <p> … … 163 163 <div class="copyright"> 164 164 <span>Copyright © <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> — <a href="http://logtalk.org">Logtalk.org</a></span><br/> 165 <span>Last updated on: January21, 2008</span>165 <span>Last updated on: April 21, 2008</span> 166 166 </div> 167 167 <div class="navbottom">
