Difference between revisions of "Replication"

 
Line 8: Line 8:
 
feature
 
feature
 
   f: INTEGER
 
   f: INTEGER
   g do f := f + 1 end
+
   g  
 +
      do  
 +
        f := f + 1  
 +
      end
 
end
 
end
  

Revision as of 09:04, 25 August 2006


Work in progress!

class
   B
feature
   f: INTEGER
   g 
      do 
         f := f + 1 
      end
end
 
class
   D
inherit {NONE}
   B
      rename f as f_1, g as g_1 end
   B
      rename f as f_2, g as g_2 end
feature
end     
<\code>