As there are DPs for Undo/Redo (e.g. Command Pattern) etc, are there any generic patterns for implementing Copy/Paste functionality? Or are there ways in which some existing DP can be used to implement this?
Hi, I hate to see you go with no answers. I don't think I know any for copy paste. For undo-redo you probably mean Memento though I guess it's a special Strategy after all. The only other one I can make up a way to use right off is Flyweight. If you were copying an immutable object that is expensive to make or might have a zillion copies, you could copy a pointer to it instead.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi