Show
Ignore:
Timestamp:
04/21/08 09:25:05 (8 months ago)
Author:
pmoura
Message:

Added support for checking arithmetic expressions for calls to non-portable function calls when using the "portability" compiler flag.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/manuals/userman/programming.html

    r4039 r4213  
    9999 
    100100<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. 
     101Logtalk 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. 
    102102</p> 
    103103 
     
    123123</p> 
    124124 
    125 <h3 id="programming_style">Coding style guidlines</h3> 
     125<h3 id="programming_style">Coding style guidelines</h3> 
    126126 
    127127<p> 
     
    163163    <div class="copyright"> 
    164164        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    165         <span>Last updated on: January 21, 2008</span> 
     165        <span>Last updated on: April 21, 2008</span> 
    166166    </div> 
    167167    <div class="navbottom">