[Lazarus] Support for dotted unit name

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Fri Nov 4 13:10:26 CET 2011


On Fri, Nov 4, 2011 at 11:15 AM, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> There exist more relicts from .NET, like Unicode names for identifiers.

Unlike dots in unit names, this feature is useful for people in a
general way, not just for .Net / Java compatibility. Pretty much every
programmer which isnt fluent in english would benefit from it.

> Since Delphi identifiers are case insensitive, the lookup of an identifier
> then can be quite time consuming.

have you ever run lazarus/test/lazutils/testunicode.lpi ? Or done any
performance tests on the subject?

6 million lower case operations on strings of aprox. 25 utf-8 chars
long take aprox. 1 second.

So I really doubt that any project build process could be slowed
significantly by the cost of doing Unicode lowercase or Uppercase.

The version from iconv is 2,5x slower then the one in LazUtils, but
then it's a choice people can make, use slower iconv or faster Pascal
=)

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list