menu-spec: Making menu-editing work, cleaning up <Move> semantics

Waldo Bastian bastian at kde.org
Fri Apr 22 21:44:30 EEST 2005


On Friday 22 April 2005 19:26, Heinrich Wendel wrote:
> On Thursday 31 March 2005 12:28, Waldo Bastian wrote:
> > A typical recursion looks like:
> >
> > process_node()
> > {
> >    do_breadth_first_stuff();
> >    for each child node
> >       process_node();
> >    do_depth_first_stuff();
> > }
> >
> > So if you are lucky you can just move a few lines of code around, and if
> > you are unlucky you will have to do a bit of copying and pasting and do
> > the recursion twice.
>
> What about a test-case ;)

I added one yesterday, I think it's test 't'.

Cheers,
Waldo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20050422/201a3b8a/attachment.pgp 


More information about the xdg mailing list