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, Jan 7, 11:35:42

Follow Ups

Reply to Message

Log in


Written & Designed By Ben Graves 1999-2025