Mattias Gaertner wrote:
On Fri, 16 Jun 2006 15:19:19 +0200 (Romance Daylight Time)
Michael Van Canneyt <[EMAIL PROTECTED]> wrote:
On Fri, 16 Jun 2006, Mattias Gaertner wrote:
Regular expressions are great for simple text conversions. I use them
very often, except when I need speed.
Under Perl you can create a Trim function easily, but because Perl's
regex are faster compared to other operations, your choice will be
nearly always to use a regex. This is not true for FPC. Here you can
easily beat regular expressions in speed and memory.
If you prefer some features of Perl (or any scripting language), then
why don't you create a unit with functions for your preferred
operations? Add regex, assoc. arrays, sort functions and the system
function and you can write small pascal programs as dirty and quick as
perl. Your program will still be easier to read, extend and maintain.
I'm planning to write such a unit and write a wiki page or small article
for perl users.
This kind of stuff can better be added to the FPC packages or the FCL,
it's nothing visual, after all...
Of course.
Although I have no clue, how it should be named. SimpleUtils? PerlUtils?
Maybe there are other goodies in Lazarus that qualify ?
DynHashArray, DynQueue, StringHashList, the UTF functions of LCLProc, parts
of FPCAdds, parts of FileUtil, gdk2x11.
BTW: Is the laz_xml* units still needed? Could not use the ones that
come with fpc?
Luiz
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives