----- Original Message -----

> From: Thiago Macieira <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Wednesday, September 7, 2011 9:17 AM
> Subject: Re: [Qt5-feedback] QRegExp in Qt 5 (was: V8 import to QtBase)
> 
> On Wednesday, 7 de September de 2011 08:57:17 [email protected] 
> wrote:
>>  1. It is impossible to do big changes to QRegExp without breaking existing
>>  code. Please keep the compatibility goals of Qt5 in mind. Remember that we
>>  want to MINIMIZE breakage and not repeat Qt3 to Qt4.
> 
> I wasn't asking any changes to QRegExp. The idea is to move that class, in 
> its 
> entirety, to a separate library. That way, people using it will have the 
> current behaviour and even keep source compatibility.
> 
> The challenge will be to deal with the QString methods that take QRegExp. 
> Probably mark them inline and implement them in the qregexp.h header (which 
> is 
> in the other library).

I don't know that putting it in a separate library would be a resolution then 
if there are dependencies in QString.
That said, I think there is a rather simple solution.

The Boost Library API supports naming the convention being used. We could do 
the same (whether we use Boost or not), and have the default convention be the 
old style.
If you want the new features, then you have to specify one of the other 
conventions. At some point (Qt6?) the default could be changed to something 
more standard.
 
That would keep the compatibility requirement intact, and give the enhancements 
desired.

$0.02

Ben

_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to