Hi,
 
AFAIK in Delphi it's a matter of roll-your-own or use someone else's :) The TList can be used like a queue, stack etc. but it's nicer to make a class for the specific functionality.
Iterators using interfaces are a good way to go. Check out the article (middle of page) at: http://www.madrigal.com.au/papers/solidcode/page3.htm.
This should get you started. I think iterators are really nice and it's hard to go back to the 'usual' way of iterating over a list in Delphi :)
HTH
 
Chris
 
-----Original Message-----
From: Tracey Maule [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 9 October 2002 11:20 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: iterators, deques etc

Hi all
 
we are learning about the c++ Builder STL at poly... a question was asked of me if Delphi has similar. 
 
Does it?
Does Delphi have iterators and deques and queues??? I cant find them in the help.
 
Tracey
Software Developer / Web Master
Logis
[EMAIL PROTECTED]
(025) 213-1065

Reply via email to