[fpc-devel] Re: enumerators
klenin at gmail.com
Mon Nov 15 10:10:41 CET 2010
On Mon, Nov 15, 2010 at 18:38, Michael Schnell <mschnell at lumino.de> wrote:
> On 11/13/2010 08:56 PM, Hans-Peter Diettrich wrote:
>> The comparison in the UTF-8 string example is very questionable. First
>> ch(i) is not equivalent to ch, not even closely related, and the claim of
>> O(N^2) operations deserves an proof - IMO it's simply wrong.
> With UTF-8 strings and friends would it not be appropriate to have the loop
> variable be a string containing the multiple bytes of the Unicode character
Actually, I do not think so. I believe that an integer containing the codepoint
is preferable implementation. Either way, of course, the quadratic complexity
of for..to loop remains.
Alexander S. Klenin
More information about the fpc-devel