I vote for 1.<br><br><div class="gmail_quote">On Thu, Jan 28, 2010 at 10:24 AM, Stephane PLOIX <span dir="ltr"><<a href="mailto:stephane.ploix@edf.fr">stephane.ploix@edf.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br><font face="sans-serif" size="2">+1 for </font>
<br><div class="im"><font face="sans-serif" size="2">4. </font><tt><font size="2">Make a new
vtkLocalPointer</font></tt>
<br>
<br></div><font face="sans-serif" size="2">Stephane<br>
</font>
<br>
<br>
<br>
<table width="100%">
<tbody><tr valign="top">
<td width="40%"><font face="sans-serif" size="1"><b><a href="mailto:jeff.baumes@kitware.com" target="_blank">jeff.baumes@kitware.com</a></b>
</font>
<br><font face="sans-serif" size="1">Envoyé par : <a href="mailto:vtk-developers-bounces@vtk.org" target="_blank">vtk-developers-bounces@vtk.org</a></font>
<p><font face="sans-serif" size="1">28/01/2010 16:16</font>
</p></td><td width="59%">
<table width="100%">
<tbody><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">A</font></div>
</td><td><font face="sans-serif" size="1"><a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">cc</font></div>
</td><td><font face="sans-serif" size="1"><a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>, <a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>,
<a href="mailto:sebastien.barre@kitware.com" target="_blank">sebastien.barre@kitware.com</a></font>
</td></tr><tr valign="top">
<td>
<div align="right"><font face="sans-serif" size="1">Objet</font></div>
</td><td><font face="sans-serif" size="1">Re: [vtk-developers] Smart pointer declaration
macro?</font></td></tr></tbody></table>
<br>
<table>
<tbody><tr valign="top">
<td>
</td><td></td></tr></tbody></table>
<br></td></tr></tbody></table><div><div></div><div class="h5">
<br>
<br>
<br><tt><font size="2">On Thu, Jan 28, 2010 at 10:00 AM, Will Schroeder<br>
<<a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a>> wrote:<br>
> Jeff can you summarize the proposed solutions (assuming we think we've<br>
> covered the bases) and let's take a vote on this. I want to keep my
inbox<br>
> clear :-(<br>
<br>
1. Keep things the way they are:<br>
vtkSmartPointer<vtkClass> c = vtkSmartPointer<vtkClass>::New();<br>
<br>
2. Add new constructor to vtkSmartPointer that takes a bool and if<br>
true creates an instance of the object. Code would look like:<br>
vtkSmartPointer<vtkClass> c(true);<br>
<br>
3. Create typedefs for vtkSmartPointer<vtkClass>:<br>
vtkClassSP c = vtkClassSP::New();<br>
<br>
4. Make a new vtkLocalPointer type that is the same as vtkSmartPointer<br>
but always creates an instance of the object.<br>
vtkLocalPointer<vtkClass> c;<br>
<br>
Unfortunately our inboxes won't be clear until everyone responds with<br>
a vote (I'd maybe give it till 12pm eastern time). We can take it to<br>
the ARB if there is no clear consensus.<br>
<br>
Jeff<br>
<br>
><br>
><br>
> On Thu, Jan 28, 2010 at 9:58 AM, Sebastien BARRE<br>
> <<a href="mailto:sebastien.barre@kitware.com" target="_blank">sebastien.barre@kitware.com</a>> wrote:<br>
>><br>
>> +1, especially as a foreigner. If you don't speak/read English
that well,<br>
>> abbreviations are not all that obvious and bring one more mental
gymnastic<br>
>> to the table, slowing down the whole process of remembering the
right<br>
>> name...<br>
>><br>
>> At 1/28/2010 08:50 AM, Will Schroeder wrote:<br>
>><br>
>> Sorry, I don't like the abbreviation, I love change :-)<br>
>><br>
>><br>
>> On Thu, Jan 28, 2010 at 8:45 AM, Jeff Baumes <<a href="mailto:jeff.baumes@kitware.com" target="_blank">jeff.baumes@kitware.com</a>
><br>
>> wrote:<br>
>> On Wed, Jan 27, 2010 at 10:58 AM, Will Schroeder<br>
>> < <a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a>> wrote:<br>
>> > VTK has a verbose, self documenting style (for better or
worse). I'd<br>
>> > like to<br>
>> > stick with it if possible.<br>
>><br>
>> Will,<br>
>><br>
>> Are you suggesting no change? Or just that you don't like the<br>
>> abbreviated typedefs like vtkRendererSP?<br>
>><br>
>> Jeff<br>
><br>
><br>
><br>
> --<br>
> William J. Schroeder, PhD<br>
> Kitware, Inc.<br>
> 28 Corporate Drive<br>
> Clifton Park, NY 12065<br>
> <a href="mailto:will.schroeder@kitware.com" target="_blank">will.schroeder@kitware.com</a><br>
> <a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>
> (518) 881-4902<br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</font></tt>
<br></div></div><pre>Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
</pre><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br>