A variation on Matt Moloney's Undo/Redo "Memento" pattern

Yesterday Matt Moloney posted a nice implementation of the “Memento” pattern, which implements an undo/redo stack. Significant pieces are The state is held in an agent. This is not 100% needed, but makes for a nice example of using agents in this way. The agent is encapsulated in an object. The object can serve as…

1