Changeset 1568 for trunk/compiler

Show
Ignore:
Timestamp:
10/10/04 11:43:26 (4 years ago)
Author:
pmoura
Message:

Improved the implementation of the new "alias/1" predicate property.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r1567 r1568  
    12991299'$lgt_alias_pred'(_, Prefix, Alias, Pred, _) :- 
    13001300    '$lgt_construct_alias_functor'(Prefix, Functor), 
    1301     catch('$lgt_call'(Functor, _, Pred, Alias), _, fail), 
     1301    '$lgt_once'(Functor, _, Pred, Alias), 
    13021302    Pred \= Alias, 
    13031303    !. 
     
    64996499 
    65006500'$lgt_write_alias_clauses'(Stream) :- 
    6501     '$lgt_pp_alias_'(_, _, _) -> 
    6502         '$lgt_pp_entity_'(_, _, Prefix, _), 
    6503         '$lgt_construct_alias_functor'(Prefix, PRnm), 
    6504         '$lgt_write_alias_clauses'(Stream, PRnm) 
    6505         ; 
    6506         true. 
     6501    '$lgt_pp_entity_'(_, _, Prefix, _), 
     6502    '$lgt_construct_alias_functor'(Prefix, PRnm), 
     6503    '$lgt_write_alias_clauses'(Stream, PRnm). 
     6504 
    65076505 
    65086506'$lgt_write_alias_clauses'(Stream, Rnm) :- 
     
    65196517    write(Stream, '.'), 
    65206518    nl(Stream). 
     6519 
    65216520 
    65226521