Hello Sukender, In response to your backward compatibility suggestions, I believe clear documentation is the key, and I believe you all are off to a good start in that regard.
Inlining the deprecated functions with appropriate comment is a good start for clear documentation in the source code. It may be a bit redundant, but attempting to drive the point home for the user, might I suggest the following type of comment for the deprecated functions: [code] /** * \deprecated * note: implemented in terms of meta-data; consider using meta-data directly ... */ [/code] My current opinion is that the two functions you suggest, as straight forward as they may be to write correctly, may not be useful enough for the OSG group at large to justify adding even that small wrinkle of complexity to the design. userData and descriptionList specific functions will be deprecated features, and, as such, we should probably actively discourage continued use. clearValuesButUserDataAndDescriptionList and removeContainerButKeepUserDataAndDescriptionList might put an undo burden on clients for the sake of supporting functions that are slotted for removal. I can already see one or two design alternatives using meta-data for my project to replace descriptionList. We were able to isolate how and where we were using descriptionList, so the change for us would thankfully be fairly straight forward. On a purely aesthetic note, might I suggest for the sake of consistency using the same spelling of meta-data, meta data, or metadata in all official documentation. I can be real nit picky, I know. ;-) Thanks... D.J. On Wed, May 4, 2011 at 9:13 AM, Sergey Kurdakov <sergey.fo...@gmail.com>wrote: > Hi Sukender, > > while > > template<typename T> > struct VarValue{ > VarValue(T _t) : m_T(_t){} > > > typedef T value_type; > T m_T; > }; > > was correct in my last mail > > > T getType() const { return value_type; } > > > was incorrect, still anyway take a look at how such things are done in > Ogre > http://www.ogre3d.org/docs/api/html/classOgre_1_1Any.html > > Regards > Sergey > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org