Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
69 user(s) are online (58 user(s) are browsing Forums)

Members: 0
Guests: 69

more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 (2)


Re: Assigned: ReAction menu.class project
Just can't stay away
Joined:
2006/12/1 18:01
From Copenhagen, Denmark
Posts: 1028
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,

Niels

   Report Go to top

Re: Assigned: ReAction menu.class project
Quite a regular
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 937
@nbache

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 12:01:25
_________________
Smoke me a kipper, I'll be back for breakfast!
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