[fpc-devel] Including Sorokin's TRegExpr in FPC
Marcos Douglas
md at delfire.net
Wed Aug 31 16:41:28 CEST 2011
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
More information about the fpc-devel
mailing list