[fpc-devel] Including Sorokin's TRegExpr in FPC

John Lee johnelee0 at gmail.com
Wed Aug 31 17:07:59 CEST 2011


Just googled 'Benjamin Rosseax regexpr' and don't find anything that's
trelevant! Where is it please?

John

On 31 August 2011 15:41, Marcos Douglas <md at delfire.net> wrote:

> On Wed, Aug 31, 2011 at 2:55 AM, Felipe Monteiro de Carvalho
> <felipemonteiro.carvalho at gmail.com> wrote:
> > On Tue, Aug 30, 2011 at 10:22 PM, Florian Klämpfl
> > <florian at freepascal.org> wrote:
> >> Why didn't you just give the sorokin tregexpr unit another name? This
> >> way, no incompatiblities would have been introduced.
> >
> > Because:
> >
> > 1> the old regexpr.pas had something like 20 lines of code and it's
> > own description said it doesn't even support most POSIX, so it didn't
> > look very useful?
> > 2> Most of Joost's code is in regex.pp which was not changed, not in
> > oldregexpr.pp
> > 3> Compatibility with Delphi projects which use regexpr.pas where it
> > means Sorokin's RegExpr (I've already found a couple of those only in
> > projects which I develop, I don't know if it was included in Delphi,
> > but I think it is possible because I found some projects which use it
> > but don't have it in the sources)
> > 4> Beginners would most likely try to use regexpr.pas which has the
> > most simple name, they are better off trying to use the Sorokin
> > version.
> > 5> Benjamin Rosseax regexpr is a new invention, not something well
> > stablished and widely used like the Sorokin unit (even Lazarus uses
> > the Sorokin version), so I recommend naming it something like
> > benjaminregexpr or something like that.
>
> If we had namespaces that could be 'renamed' inside the app...
>
> Marcos Douglas
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110831/affe75e8/attachment.html>


More information about the fpc-devel mailing list