> 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
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!)
> 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
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
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
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
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
>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
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
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
10 matches
Mail list logo