Changeset 4472 for trunk/compiler

Show
Ignore:
Timestamp:
09/22/08 12:13:54 (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

    r4471 r4472  
    29472947    throw(error(instantiation_error, Obj::Pred, Sender)). 
    29482948 
     2949'$lgt_send_to_object'({Proxy}, Pred, Sender) :- 
     2950    !, 
     2951    call(Proxy), 
     2952    '$lgt_send_to_object_nv'(Proxy, Pred, Sender). 
     2953 
    29492954'$lgt_send_to_object'(Obj, Pred, Sender) :- 
    29502955    '$lgt_send_to_object_nv'(Obj, Pred, Sender). 
     
    30073012    var(Pred), 
    30083013    throw(error(instantiation_error, Obj::Pred, Sender)). 
     3014 
     3015'$lgt_send_to_object_ne'({Proxy}, Pred, Sender) :- 
     3016    !, 
     3017    call(Proxy), 
     3018    '$lgt_send_to_object_ne_nv'(Proxy, Pred, Sender). 
    30093019 
    30103020'$lgt_send_to_object_ne'(Obj, Pred, Sender) :-