#49724 [Com]: Just a simple docu misstake
| From: | niel dot archer at blueyonder dot co dot uk | Date: | Wed, 30 Sep 2009 16:29:09 +0000 |
| Subject: | #49724 [Com]: Just a simple docu misstake | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2847@lists.php.net to get a copy of this message | ||
ID: 49724
Comment by: niel dot archer at blueyonder dot co dot uk
Reported By: stephan at strato-rz dot de
Status: Open
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
The documentation is correct.
A queue is like a single lane of traffic at a stop light. The first
vehicle to arrive will be the First to pass the light when it changes.
First In First Out.
A stack is like a pile of plates waiting to be washed. you can keep
putting them on the top, but when it's time to wash the next, it has to
come from the top or your structure will fall ;-). Last In (On), Last
Out(Off).
See http://en.wikipedia.org/wiki/FIFO and
http://en.wikipedia.org/wiki/LIFO_(computing)
for more detailed info.
Previous Comments:
------------------------------------------------------------------------
[2009-09-30 15:40:43] stephan at strato-rz dot de
Description:
------------
* SplDoublyLinkedList::IT_MODE_LIFO (Stack style)
* SplDoublyLinkedList::IT_MODE_FIFO (Queue style)
right is
* SplDoublyLinkedList::IT_MODE_LIFO (Queue style)
* SplDoublyLinkedList::IT_MODE_FIFO (Stack style)
so a stack is anytime pushed and pop so it behave in a FIFO matter
a unpriorised quene follow the LIFO way
Reproduce code:
---------------
---
From manual page: spldoublylinkedlist.setiteratormode#Parameters
---
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49724&edit=1