Changeset 4600 for trunk/compiler

Show
Ignore:
Timestamp:
11/21/08 15:34:32 (7 weeks ago)
Author:
pmoura
Message:

Updated the "expansion" example to illustrate the new expand_goal/2 built-in method.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/compiler/logtalk.pl

    r4599 r4600  
    29762976% expand_goal/2 built-in method 
    29772977 
    2978 '$lgt_expand_goal'(Obj, Goal, Expansion, Sender, Scope) :- 
     2978'$lgt_expand_goal'(Obj, Goal, EGoal, Sender, Scope) :- 
    29792979    (    var(Goal) -> 
    2980          Expansion = Goal 
    2981     ;    '$lgt_goal_expansion'(Obj, Goal, Expand, Sender, Scope) -> 
    2982          Expansion = Expand 
    2983     ;    Expansion = Goal 
     2980         EGoal = Goal 
     2981    ;    '$lgt_goal_expansion'(Obj, Goal, Expanded, Sender, Scope) -> 
     2982         '$lgt_expand_goal'(Obj, Expanded, EGoal, Sender, Scope) 
     2983    ;    EGoal = Goal 
    29842984    ).  
    29852985