Changes between Version 4 and Version 5 of PRO_CHANGE_MANAGER_R0


Ignore:
Timestamp:
01/07/09 21:15:40 (16 years ago)
Author:
peko
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PRO_CHANGE_MANAGER_R0

    v4 v5  
    3434{{{ 
    3535   skip: 
    36    1. a = 5 | 5 
    37    2. a = 6 | 6 
    38    3. a = 7 | 7 
     36   1. a = 5  | 5 
     37   2. a = 6  | 6 
     38   3. a = 7  | 7 
    3939   4. skip 2 | 7 because a new change has occurred after 2. 
    4040 
    4141   skip/undo: 
    42    1. b = 10 | 10 
    43    2. b = 5 | 5 
    44    3. skip 2 | 10 is the last change that is to be undone. 
    45    4. undo | 5 because the skip is undone. 
    46    5. skip 4 | 10 because the last undo is skipped as a change. 
     42   1. b = 10   | 10 
     43   2. b = 5    | 5 
     44   3. skip 2   | 10 is the last change that is to be undone. 
     45   4. undo     | 5 because the skip is undone. 
     46   5. skip 4   | 10 because the last undo is skipped as a change. 
    4747   
    4848   more complicated: 
    49    1. c = 5 | 5 
    50    2. c = 7 | 7 
    51    3. c = 10 | 10 
    52    4. c = 12 | 12 
    53    5. undo | 10 this is the current value of c 
    54    6. skip 3 | 7  
    55     
     49   1.  c = 5    | 5 
     50   2.  c = 7    | 7 
     51   3.  c = 10   | 10 
     52   4.  c = 12   | 12 
     53   5.  undo     | 10 this is the current value of c after the undo 
     54   6.  skip 3   | 7 since 10 was last value after the undo which is the third change. 
     55   7.  undo     | 10 again 
     56   8.  skip 7   | 7 after skipping change 7 we should return to value 7. 
     57   9.  redo     | 7 because this should not be possible since the corresponding undo is already missing so nothing changes. 
     58   10. unskip 7 | 10 since the value after the undo should had been 7. 
     59   11. skip 10  | 7 the previous value is returned. 
     60   12. skip 11  | 10 the previous is unskip 10 so the value remains exactly 10. 
     61   13. skip 12  | 7 again 
     62   14. unskip 11| 10 
     63   15. skip 1   | 10 
     64   15. skip 2   | 10 
     65   15. skip 3   | 10 
     66   15. skip 4   | 10 at this point we cannot revert the initializing of c.  Now what ?!? 
     67 
    5668}}} 
     69 
     70'''Notes:''' 
     71 * skipping the previous change acts like a undo. 
     72 * unskipping the previous change acts like a redo. 
     73 *  
     74 
    5775== Related == 
    5876