On Thu, 22 Oct 2009, Paul Ishenin wrote:
Michael Van Canneyt wrote:
Hm. I like this direction of thinking, yes...
Hm. I like that after 100 mails of 'yes, I like them', 'no, I don't like
them' we finnaly moved to the initial idea of the tread - design and
implementation discussion :)
What about
function StepNext: Boolean; iterator 'movenext';
property TheCurrentValue: Integer; iterator 'current';
string are bad.
or better yet, because it is more strict:
function StepNext: Boolean; iterator nextvalue;
property TheCurrentValue: Integer; iterator currentvalue;
I like this one. Only not 'iterator nextvalue' and 'iterator currentvalue'
but 'iterator movenext' and 'iterator current' :)
Or 'enumerator' instead of 'iterator' to be compatible with delphi
terminology ;)
Don't forget the remark by Sergei Gorelkin, that in fact a single
call could be enough.
Michael.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel