Dear Marcus: <br><br>Sorry for the late comments on the naming convention.. <br><br>Despite its verbosity, I like the older name (vtkScopedPointer), specifically the "Pointer" fragment. The Scoped fragment is open to discussion.<br>
<br>Its has a naming convention and its easy to explain to someone. We have a vtkWeakPointer, vtkSmartPointer, vtkScopedPointer. Just like we use Reader, Writer, Mapper, Actor, Widget, Data suffixes, it seems appropriate to have the "Pointer" suffix here. <br>
<br>Thanks<br>--<br>karthik<br><br><div class="gmail_quote">On Wed, Jan 26, 2011 at 8:10 PM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</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;">I just merged the vtkNew topic branch. I will keep an eye on the<br>
dashboards. Personally, I think it is a good addition but due to VTK's<br>
API (largely passing pointers around as function arguments) I can see<br>
some motivation (and precedent from vtkSmartPointer) for opening up<br>
the API later. This is totally possible should there be motivation to<br>
do so.<br>
<br>
There are a few ideas I have to make it more useful in the future, but<br>
I think even in its current form it should enable us to write more<br>
concise, readable code. Let me know if there is anything I missed, I<br>
am very tempted to add a Get() method that returns the pointer, in<br>
addition to the more standard GetPointer() for example.<br>
<br>
Thanks for all of the comments and feedback.<br>
<font color="#888888"><br>
Marcus<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>