[Lazarus] Easiest way to "case" strings

Paul Ishenin webpirat at mail.ru
Thu Mar 26 15:22:40 CET 2009


Alexander Klenin wrote:
> Reverse iteration might be common enough to warrant a special syntax,
> but in general all non-standard iteration orders should fall back to indexing.
>   
Then better to extend sintax:

using default iterator = delphi compatible

FOR s IN list DO
  WriteLn(s);

extended:

FOR s IN list USING my_reverse_iterator DO
  WriteLn(s);

In upper case I wrote keywords and in lower case identifiers.

Best regards,
Paul Ishenin.



More information about the Lazarus mailing list