[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: undo-mechanism
From: |
Bernhard Herzog |
Subject: |
Re: undo-mechanism |
Date: |
Mon, 11 Apr 2005 20:27:38 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/22.0.50 (gnu/linux) |
Hi,
"N. Volbers" <address@hidden> writes:
> There are however some cases where it would be very convenient if some
> method actually returned a certain value besides the undoinformation.
>
> With the current solution, the only way I can think of is to provide a
> new parameter, a list, to which the return value would be appended.
Another approach would be to return a tuple (result, undoinfo). I've
used that in Skencil is few places. It's very rare, though, in my
experience, that a method that returns undoinfo also has to return
another value.
Bernhard
--
Intevation GmbH http://intevation.de/
Skencil http://skencil.org/
Thuban http://thuban.intevation.org/
- undo-mechanism, N. Volbers, 2005/04/11
- Re: undo-mechanism,
Bernhard Herzog <=