Replying to a message of Tim Hutzler to Darryl Gregorash:
DG>> But do we really know if he wants a Q or a stack??
TH> Yes, he was suffiently descriptive in what he wanted. He
TH> talked about a "buffer" where bytes would go in and move to
TH> the top.
That is still insufficient, Tim.. there is a big difference between a buffer
where you read the oldest element (FIFO buffer, aka "queue") and a buffer
where you read the most recently added element (LIFO buffer, aka "stack").
He has not told us where he is going to be reading the buffer.. if it is the
same place as where writes to it, then he clearly has a stack, otherwise it
is a queue.
--- FleetStreet 1.21 NR
---------------
* Origin: BIG BANG Burger Bar: Regina SK Canada (1:140/86)
|