Re: [Plib-devel] RTTI
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2000-09-27 17:31:24
|
Norman Vine wrote: > > Steve Baker writes: > > > >> Dave McClurg wrote: > >> > >> I'm ready to integrate RTTI into plib. See the attached file foo.cxx for > an > >> example of the macros I plan on using. Let me know if this works for > you. > > Whoa !! > Let's slow down a little here :-) > > >> It would go into ssg and pui and affect any code that > >> references 'int type' from ssgBase and also do away with the > >> SSG_TYPE_XXXX defines and ssgTypeXXXX() functions. > > > >Hopefully, there are no applications using the SSG_TYPE_XXXX > >functions - > > PPE and FlightGear both use these !!! > As I would imagine does any SSG application that actually walks > the SSG tree for itself rather then using a 'built-in' method. You can use 'ssgTypeXXX()' - but I don't think you should ever use SSG_TYPE_XXX. We need to be sure that ulRTTI reproduces the behavior of ssgTypeXXX, and the isA and isAKindOf stuff - but if your application is using SSG_TYPE_XXXX then you should change the application to use 'isA' and 'isAKindOf'. > At first glance it appears that it would be fairly easy > to change the FGFS code, and I think PPE would change > fairly easily too > > BUT .. > > I would like to see how this would be Integrated into > PLib before I can whole heartily throw my support behind > this proposal. Yes. That's why we have CVS! > FWIW > My biggest concern is that by moving to a MACRO based > implementation of RTTI it will be much harder for PLib to > evolve gracefully < ie with out major code surgery>. > > Again I am not against this proposal it is just that I need > some time to think about it as I believe that this potentially > represents a major change. Well, I think it can be handled 'behind the scenes' - and it's a lot more elegant than my original mechanism. -- Steve Baker HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://web2.airmail.net/sjbaker1 Projects : http://plib.sourceforge.net http://tuxaqfh.sourceforge.net http://tuxkart.sourceforge.net http://prettypoly.sourceforge.net |