Graeme Geldenhuys wrote:
Also, I referred to them in my implementation as Iterators - as per
the Iterator design pattern. How does Enumerator differ from Iterator?
I have looked at you interfaces. They are needs to be changed a bit to
use then in the for-in loop. For example:
ITBIterator
2009/10/25 Paul Ishenin webpi...@mail.ru:
I don't argue but how do you think to use HasPrevious, PeakNext,
PeakPrevios, Reset, JumpToBack in the for-in loop? Can you suggest a syntax?
I did not expect for-in loop to support all the methods I require (or
use), hence the reason I ask, and why I
On Sun, Oct 25, 2009 at 16:49, Paul Ishenin webpi...@mail.ru wrote:
When I use
iterators, I would like to have the ability to use Current, HasNext,
HasPrevious, PeakNext, PeakPrevious, Reset, JumpToBack, pass a filter
to GetIterator... etc.
I don't argue but how do you think to use
2009/10/25 Paul Ishenin webpi...@mail.ru:
To use it in the for-in loop you need to add a function MoveNext: Boolean
(you can choose any other name but you need to mark it using 'enumerator
MoveMext' modifier) and property Current: TObject (you can choose any other
name but you need to mark it
Graeme Geldenhuys schreef:
use, like: PeakNext, PeakPrevious, Remove, JumpToBack, etc...
I would call it PeekNext, PeekPrevious, ...
Vincent
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
On 25/10/2009, Alexander Klenin kle...@gmail.com wrote:
IMHO, Reset/JumpToBack should not be used inside for..in loop -- they are
analogous to goto inside for loop.
If for .. in .. index extension is implemented, it may be used to call
As I explained in my previous reply to Paul - I
On 25/10/2009, Vincent Snijders vsnijd...@vodafonevast.nl wrote:
I would call it PeekNext, PeekPrevious, ...
You are correct...
--
Regards,
- Graeme -
___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
On Sun, Oct 25, 2009 at 20:05, Graeme Geldenhuys
graemeg.li...@gmail.com wrote:
On 25/10/2009, Alexander Klenin kle...@gmail.com wrote:
IMHO, Reset/JumpToBack should not be used inside for..in loop -- they are
analogous to goto inside for loop.
If for .. in .. index extension is
I am trying to write fpc bindings for the GraphicsMagick imaging library. Since
it's a fork of ImageMagick, its API is basically the same.
I know there is a similar fpc package called PascalMagick. Unfortunately, this
seems to be an unfinished effort. Types are redefined from c headers, but
Alexander Klenin wrote:
AFAIU, the whole point of the previous discussion is
that you do not have to implement GetIterator separately
from GetEnumerator -- you can have the same class filling both roles.
Yes. I think we can use some common interfaces/classes/objects in RTL
both for the
On Saturday 24 October 2009 18:32:32 JoshyFun wrote:
Hello Martin,
Saturday, October 24, 2009, 10:42:27 AM, you wrote:
MS What do you recommend, should MSEide parse the gdb watch results and
run MS another query in order to get the values of var parameters? How
does Lazarus MS solve the
On 25/10/2009, Paul Ishenin webpi...@mail.ru wrote:
I already created delphi compatible enumerator classes for the basic RTL
lists: TFpList, TList, TStrings, TComponent and TCollection. We can inherit
all them from the TInterfacedObject and Graeme interfaces. And list classes
will have 2
12 matches
Mail list logo