Programming geek alert.........
What i'm after is a way of producing a fixed size stack to go with Command pattern.
What i'm trying to do is have up to 5 levels of undo for state holding command objects. Which I think is best in a stack so I can just pop off the top.
But I don't know of a stack structure that's fixed size so that when 6th item is added, the first item drops off.
Is this something i'm going to have to do myself?
Posted By: Johnny Comecardiff on January 7th 2008 at 11:35:42
Message Thread
- Programming geek alert......... (General Chat) - Johnny Comecardiff, Jan 7, 11:35:42
- Probably (General Chat) - BerlinCanary, Jan 7, 12:09:16
- Was planning on C#.... (General Chat) - Johnny Comecardiff, Jan 7, 12:37:51
- Probably (General Chat) - BerlinCanary, Jan 7, 12:09:16
Reply to Message
In order to add a post to the WotB Message Board you must be a registered WotB user.
If you are not yet registered then please visit the registration page. You should ensure that their browser is setup to accept cookies.