Changeset 4474 for trunk/compiler

Show
Ignore:
Timestamp:
09/25/08 19:24:17 (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

    r4473 r4474  
    78857885% convenient access to parametric object proxies 
    78867886 
    7887 '$lgt_tr_msg'(Pred, Obj, (catch(Proxy, error(Error, _), throw(error(Error, Obj::Pred, This))), TPred), This) :- 
     7887'$lgt_tr_msg'(Pred, Obj, (catch(once(Proxy), error(Error, _), throw(error(Error, Obj::Pred, This))), TPred), This) :- 
    78887888    nonvar(Obj), 
    78897889    Obj = {Proxy},