From kde-core-devel Sun Jan 15 06:38:21 2006 From: Michael Pyne Date: Sun, 15 Jan 2006 06:38:21 +0000 To: kde-core-devel Subject: Re: KSharedPtr changes Message-Id: <200601150138.21222.michael.pyne () kdemail ! net> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=113730669820797 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--nextPart2923239.09Zu8SeRtB" --nextPart2923239.09Zu8SeRtB Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 14 January 2006 08:05, Andr=E9 W=F6bbeking wrote: > On Saturday 14 January 2006 13:06, Boudewijn Rempt wrote: > > On Saturday 14 January 2006 12:54, Michel Hermier wrote: > > > One main disaventage of that is that we can't use the > > > "KSharedPtr foo =3D bar;" syntax. > > > We must use the "KSharedPtr foo(bar);" syntax. > > > > I'd hate that... We use this construction in so many places in Krita > > that it's going to be decided unfun to convert it everywhere. > > It's worth this little inconvenience. The dangling pointer from Michel's > example is much more anoying. Have you guys actually tested that? Unless I'm mistaken, in C++, *when=20 constructing an object*, the Foo foo =3D bar; and Foo foo(bar); syntaxes ar= e=20 identical and equivalent. I'll make up some test code and report back. Regards, - Michael Pyne --nextPart2923239.09Zu8SeRtB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDye3dqjQYp5Omm0oRApYqAKCFTGTwszBaMvanIAfFJUt1ZrQazgCfb5ne gsEi5EuZ9FEQ9FBX4/a4F30= =TvQB -----END PGP SIGNATURE----- --nextPart2923239.09Zu8SeRtB--