zt
10/08/2022, 11:35 PMCasey Brooks
10/09/2022, 12:26 AMMatteo Mirk
10/11/2022, 12:39 PMUses
[…]
Multi-level undo
If all user actions in a program are implemented as command objects, the program can keep a stack of the most recently executed commands. When the user wants to undo a command, the program simply pops the most recent command object and executes its undo() method.Instead of popping commands from the list you leave them in, and move the pointer accordingly.
Casey Brooks
10/13/2022, 4:46 PMzt
10/13/2022, 4:49 PM