Re: [Development] QList

2017-03-25 Thread Philippe
> Il 25/03/2017 23:23, Philippe ha scritto: > > Indeed, as a user of QPolygon, I do see and handle a QPolygon as a > > vector of points... > > None of these properties strictly depend on the fact that a QPolygon > _is-a_ QVector. > For sure, but where is the problem of having QPolygon publicly i

Re: [Development] QList

2017-03-25 Thread Giuseppe D'Angelo
Il 25/03/2017 23:23, Philippe ha scritto: > Indeed, as a user of QPolygon, I do see and handle a QPolygon as a > vector of points... None of these properties strictly depend on the fact that a QPolygon _is-a_ QVector. (A QPolygon quacks, a QVector quacks, therefore a QPolygon must be a QVector!)

Re: [Development] QList

2017-03-25 Thread Philippe
> A vector is a sequential collection of items. A polygon is a sequential > collection of points. So a polygon can be a vector of points. > > But I don't think that it should inherit, since some of the operations that > you can do in a vector don't really apply to a polygon. 1) To build a QPoly

Re: [Development] QList

2017-03-25 Thread Thiago Macieira
On sábado, 25 de março de 2017 10:22:22 PDT Marc Mutz wrote: > The main idea of QBasicVector is to fight template bloat by e.g. inheriting > both QVector and QVector from the same QBasicVector. Likewise, > all QVector can inherit QBasicVector. Or all QVector, > intergral_type can inherit QBasicVect

Re: [Development] QList

2017-03-25 Thread Thiago Macieira
On sábado, 25 de março de 2017 12:08:09 PDT Giuseppe D'Angelo wrote: > Il 25/03/2017 17:11, Martin Smith ha scritto: > >>Note that I think we should change QPolygon to stop inheriting from > >> > > QVector in > > > >>the first place. QPolygon is not a QVector. > >> > > But then a vector is not a c

Re: [Development] QList

2017-03-25 Thread Giuseppe D'Angelo
Il 25/03/2017 17:11, Martin Smith ha scritto: >>Note that I think we should change QPolygon to stop inheriting from > QVector in > >>the first place. QPolygon is not a QVector. > > > But then a vector is not a collection. So you're saying that since QPolygon is a collection (of points) and QVe

Re: [Development] QList

2017-03-25 Thread Marc Mutz
On Saturday 25 March 2017 16:29:09 Thiago Macieira wrote: > On sábado, 25 de março de 2017 00:57:57 PDT Marc Mutz wrote: > > On 2017-03-24 20:55, Thiago Macieira wrote: > > > Em sexta-feira, 24 de março de 2017, às 09:18:05 PDT, Marc Mutz > > > escreveu: > > >> > Are you of the opinion that private

Re: [Development] QList

2017-03-25 Thread Martin Smith
>Note that I think we should change QPolygon to stop inheriting from QVector in >the first place. QPolygon is not a QVector. But then a vector is not a collection. From: Development on behalf of Thiago Macieira Sent: Saturday, March 25, 2017 4:29:09 PM To: de

Re: [Development] QList

2017-03-25 Thread Thiago Macieira
On sábado, 25 de março de 2017 00:57:57 PDT Marc Mutz wrote: > On 2017-03-24 20:55, Thiago Macieira wrote: > > Em sexta-feira, 24 de março de 2017, às 09:18:05 PDT, Marc Mutz > > > > escreveu: > >> > Are you of the opinion that private inheritance has no purpose and > >> > should > >> > never be u

Re: [Development] QList

2017-03-25 Thread Marc Mutz
On 2017-03-24 20:55, Thiago Macieira wrote: Em sexta-feira, 24 de março de 2017, às 09:18:05 PDT, Marc Mutz escreveu: > Are you of the opinion that private inheritance has no purpose and should > never be used? No, and if you look at code I have written over the years, you will see that I do