Re: Upcoming GLib changes



On Fri, 2 Jul 1999, Scott Wimer wrote:

> On Thu, 1 Jul 1999, Damon Chaplin wrote:
> 
> > I agree with this. I think:
> > 
> >  g_stack_push()
> >  g_stack_pop()
> >  g_stack_empty()
> >  g_stack_peek()
> 
> Let's add the following, just to make the stack more useful:
> 
> g_stack_shift()			/* like pop(), only on the other end */
> g_stack_unshift()       /* like push(), only on the other end */

and you don't think a queue would be more usefull
if you need this functionality? ;)

> The problem is that these make the implementation more difficult.
> If people don't want to add them to g_stack, that's not a big deal.
> 
> I'll be putting them in my bucketized array library.  (which should
> be a nice comprimise between GList and GArray).
> 
> Regards,
> scottwimer
> 

---
ciaoTJ




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]