Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
36 user(s) are online (25 user(s) are browsing Forums)

Members: 1
Guests: 35

NinjaCyborg, more...

Support us!

Headlines

 
  Register To Post  

« 1 (2)
Re: Assigned: ReAction menu.class project
Just can't stay away
Just can't stay away


See User information
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

Go to top
Re: Assigned: ReAction menu.class project
Amigans Defender
Amigans Defender


See User information
@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 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
Go to top

  Register To Post
« 1 (2)

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project