Undo in D

2018-06-22 Thread DigitalDesigns via Digitalmars-d-learn
Is there any idiomatic undo designs in D that give a more natural implementation than the standard techniques?

Re: Undo in D

2018-06-23 Thread Basile B. via Digitalmars-d-learn
On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote: Is there any idiomatic undo designs in D that give a more natural implementation than the standard techniques? - The "stuff to undo" can be a forward range ("save" primitive, + assignable from a stored state) - The manager can b

Re: Undo in D

2018-06-23 Thread Basile B. via Digitalmars-d-learn
On Saturday, 23 June 2018 at 14:06:08 UTC, Basile B. wrote: On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote: Is there any idiomatic undo designs in D that give a more natural implementation than the standard techniques? - The "stuff to undo" can be a forward range ("save" primi

Re: Undo in D

2018-06-23 Thread bauss via Digitalmars-d-learn
On Saturday, 23 June 2018 at 01:58:31 UTC, DigitalDesigns wrote: Is there any idiomatic undo designs in D that give a more natural implementation than the standard techniques? There is the solution above, but there I've implemented something similar in Diamond. It's a little bit different co