Changes between Initial Version and Version 1 of KeysRefactor

Show
Ignore:
Timestamp:
07/30/09 23:24:14 (12 years ago)
Author:
bacek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • KeysRefactor

    v1 v1  
     1=== Idea of refactoring Key PMC === 
     2 
     3Current Keys are messy and incomprehensible. So there is idea of refactoring them into something more sane. 
     4 
     5Keys currently serve only one purpose: navigate in nested containers. Iteration over containers was removed as part of key_revamp branch. 
     6To support this functionality more implicit and in clean way we will: 
     7 
     81. Add {{{KeyItem}}} interface class to represent single abstract step. 
     9 
     102. Implement {{{StringKeyItem}}}, {{{IntegerKeyItem}}} and {{{PMCKeyItem}}} to store concrete value for each step. 
     11Such {{{FooKeyItem}}} will implement {{{get_foo}}} vtable methods, freeze/thaw and nothing else. We don't need FloatKeyItem because float keys are meaningless. 
     12 
     133. Re-implement Key as: 
     14 
     15  a. RPA for storing *KeyItem. 
     16 
     17  b. Various {{{push_foo}}} vtables to create specific FooKeyItem and append it to path. 
     18