Remember me

Lost Password?

Register now!


Who's Online
65 user(s) are online (48 user(s) are browsing Forums)

Members: 1
Guests: 64

mufa, more...

Support us!


« 1 (2)

Re: Assigned: ReAction menu.class project
Just can't stay away
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1248
It's a neat idea, makes for an almost pure recursive design.

But then there's also the flip side of recursion: making sure you stop the recursion when needed. In this case there are the limits in the underlying menus; only one level of submenus, number of items (is it 20 max?) etc. Will it give too much trouble and mess up your "clean" design too much to have to enforce those limits in a homogenous population of objects all alike?

Just a thought ...

Best regards,


   Report Go to top

Re: Assigned: ReAction menu.class project
Just can't stay away
2009/5/1 18:57
From Czech Republic
Posts: 1299

I would be inclined to impose no limits in the design itself (so as to allow free extension), but I'd of course make the class cater for the current limitations. For example, when adding a submenu beyond the depth limit the instantiation will fail.

There is a small problem with applying the recursive design to the existing menu system. Although the menu is essentially a tree-like hierarchical structure, Gadtools utilized the current limitation (low depth) to represent the menu strip in a linear fashion instead - as a sequence of data structures. So if the class adopts the recursive design, the resulting object hierarchies will need to get translated to the linear sequence of NewMenus. There will be a plenty of food for thought I'm sure

Edited by trixie on 2014/7/2 13:01:25
The Rear Window blog

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top

« 1 (2)

[Advanced Search]

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project