User Tools

Site Tools


it_seems_like_many_implementations_are_using_abstract_syntax_tree_rewriting_to_enable_dci._how_does_it_work

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

it_seems_like_many_implementations_are_using_abstract_syntax_tree_rewriting_to_enable_dci._how_does_it_work [2014/01/22 11:10]
gazoot created
it_seems_like_many_implementations_are_using_abstract_syntax_tree_rewriting_to_enable_dci._how_does_it_work [2014/01/22 11:13] (current)
gazoot
Line 20: Line 20:
           }           }
      };      };
- +      
-     ​void ​LightsCameraActionSystemOperation(Person x) {+     // Constructor 
 +     ​void ​new(Person x) { 
  Cowboy <- x; // inject the roles  Cowboy <- x; // inject the roles
  Shape <- x;  Shape <- x;
 +     }
  
 +     void LightsCameraActionSystemOperation() {
  Cowboy.move(Point(3,​4));​  Cowboy.move(Point(3,​4));​
  Shape.draw();​ //​ a frame of the animation  Shape.draw();​ //​ a frame of the animation
Line 57: Line 60:
      }      }
  
-     ​public void LightsCameraActionSystemOperation(Person x) {+     ​public void new(Person x) { 
  Cowboy = x;  Cowboy = x;
  Shape = x;  Shape = x;
 +     }
  
 +     ​public void LightsCameraActionSystemOperation() {
  Cowboy_move(Point(3,​4));​  Cowboy_move(Point(3,​4));​
  Shape_draw();​  Shape_draw();​
it_seems_like_many_implementations_are_using_abstract_syntax_tree_rewriting_to_enable_dci._how_does_it_work.txt · Last modified: 2014/01/22 11:13 by gazoot