Changeset 4471 for trunk/compiler

Show
Ignore:
Timestamp:
09/22/08 12:04:00 (4 months ago)
Author:
pmoura
Message:

Added a syntax construct for easy access to parametric object proxies represented as Prolog facts when sending a message ({Proxy}::Message). Updated the "proxies" example to illustrate this new functionality.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4470 r4471  
    78857885% convenient access to parametric object proxies 
    78867886 
    7887 '$lgt_tr_msg'(Pred, {Proxy}, (call(Proxy), TPred), This) :- 
     7887'$lgt_tr_msg'(Pred, Obj, (call(Proxy), TPred), This) :- 
     7888    nonvar(Obj), 
     7889    Obj = {Proxy}, 
    78887890    !, 
    78897891    '$lgt_tr_msg'(Pred, Proxy, TPred, This).