[fpc-devel] for-in-index loop

Graeme Geldenhuys graeme at geldenhuys.co.uk
Fri Jan 25 14:24:08 CET 2013


On 01/25/13 10:22, Michael Schnell wrote:
> and replacing the term myString[n] by a 
> straight forward  function searching for the n'th printable character 
> will be very slow.

And I am yet to see a real-world example where this is needed. ALL
examples I have seen, the developer was already busy iterating the UTF-8
string, so index access wasn't needed.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the fpc-devel mailing list