Changeset 3977

Show
Ignore:
Timestamp:
12/21/07 07:51:35 (13 months ago)
Author:
pmoura
Message:

Renamed the predicate property "alias/1" to "alias_of/1" in order to disambiguate its meaning.

Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r3966 r3977  
    18771877        \+ call_with_args(TCtnDcl, Pred, _, _, _, _, _), 
    18781878        '$lgt_alias_pred'(Obj, Prefix, Pred, Pred2), 
    1879         Prop = alias(Pred2) 
     1879        Prop = alias_of(Pred2) 
    18801880    ;   call_with_args(Def, Pred, _, _, _, _, DCtn) ->  % must be the last property checked because 
    18811881        Prop = defined_in(DCtn)                         % of the implicit cut on the ->/2 call 
     
    1109911099'$lgt_valid_pred_property'(meta_predicate(_)). 
    1110011100'$lgt_valid_pred_property'(built_in). 
    11101 '$lgt_valid_pred_property'(alias(_)). 
     11101'$lgt_valid_pred_property'(alias_of(_)). 
    1110211102'$lgt_valid_pred_property'(non_terminal(_)). 
    1110311103'$lgt_valid_pred_property'(synchronized). 
  • trunk/examples/aliases/SCRIPT.txt

    r3941 r3977  
    3737Property = declared_in(rectangle(_G264, _G265)) ; 
    3838Property = defined_in(rectangle(_G297, _G298)) ; 
    39 Property = alias(width(_G182)) 
     39Property = alias_of(width(_G182)) 
    4040yes 
    4141 
     
    7373Property = declared_in(ellipse(_G266, _G267)) ; 
    7474Property = defined_in(ellipse(_G299, _G300)) ; 
    75 Property = alias(rx(_G177)) 
     75Property = alias_of(rx(_G177)) 
    7676yes 
    7777 
  • trunk/manuals/refman/grammar.html

    r3830 r3977  
    748748            <dd>"<code>defined_in(</code>" object_identifier | category_identifier "<code>)</code>" |</dd> 
    749749            <dd>"<code>meta_predicate(</code>" meta_predicate_mode_indicator "<code>)</code>" |</dd> 
    750             <dd>"<code>alias(</code>" callable "<code>)</code>" |</dd> 
     750            <dd>"<code>alias_of(</code>" callable "<code>)</code>" |</dd> 
    751751            <dd>"<code>non_terminal(</code>" non_terminal_indicator "<code>)</code>"</dd> 
    752752    </dl> 
     
    755755    <div class="copyright"> 
    756756        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    757         <span>Last updated on: April 14, 2007</span> 
     757        <span>Last updated on: December 9, 2007</span> 
    758758    </div> 
    759759    <div class="navbottom"> 
  • trunk/manuals/userman/predicates.html

    r3839 r3977  
    610610    <li><code>defined_in(Entity)</code></li> 
    611611    <li><code>non_terminal(NonTerminal//Arity)</code></li> 
    612     <li><code>alias(Predicate)</code></li> 
     612    <li><code>alias_of(Predicate)</code></li> 
    613613    <li><code>synchronized</code></li> 
    614614</ul> 
     
    623623</p> 
    624624<p> 
    625 The property <code>alias/1</code> is returned for predicates that are an alias to other predicate (which is returned in the property argument). 
     625The property <code>alias_of/1</code> is returned for a predicate that is an alias of another predicate (which is returned in the property argument). 
    626626</p> 
    627627<p> 
     
    676676    <div class="copyright"> 
    677677        <span>Copyright &copy; <a href="mailto:pmoura@logtalk.org">Paulo Moura</a> &mdash; <a href="http://logtalk.org">Logtalk.org</a></span><br/>  
    678         <span>Last updated on: September 15, 2007</span> 
     678        <span>Last updated on: December 9, 2007</span> 
    679679    </div> 
    680680    <div class="navbottom"> 
  • trunk/RELEASE_NOTES.txt

    r3973 r3977  
    4343    files. 
    4444 
     45    Renamed the predicate property "alias/1" to "alias_of/1" in order to  
     46    disambiguate its meaning. 
     47 
    4548    Added a new config file, "k6.config", for the K-Prolog 6.0 beta  
    4649    version. 
     
    5558    Added two new multi-threading examples, "fibonacci" and "hanoi", and  
    5659    corrected a bug in the recursive creation of threads on the "sorting"  
    57     example.Updated the "primes" multi-threading example to also work with  
     60    example. Updated the "primes" multi-threading example to also support  
    5861    eight threads. 
    5962 
  • trunk/UPGRADING.txt

    r3976 r3977  
    177177Logtalk 2.31.0 changes the "imports" relation between categories to the  
    178178relation "extends". The relation "imports" is now only used for objects  
    179 importing categories. This version also changes compiler hook support;  
    180 you will need to update your code if you're using hook objects and hook  
    181 predicates. Moreover, Logtalk source files will need to be recompiled  
    182 because of the changes done in this version to improve updating runtime  
    183 bookkeeping tables when loading new entities. 
     179importing categories. This version renames the predicate property "alias/1"  
     180to "alias_of/1" in order to disambiguate its meaning. This version also  
     181changes compiler hook support; you will need to update your code if you're  
     182using hook objects and hook predicates. Moreover, Logtalk source files will  
     183need to be recompiled because of the changes done in this version to improve  
     184updating runtime bookkeeping tables when loading new entities.