RE: [GD-General] Overhead of RTTI
Brought to you by:
vexxed72
From: <ce...@ce...> - 2002-12-26 17:34:19
|
Okay, but does any of you know what other overhead will RTTI introduce if dynamic_cast will be used strictly when static_cast won't work (like when having to do with MI)? Maybe a structure size overhead, but how big? Thanks, Adrian -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Nicolas Romantzoff Sent: Tuesday, December 24, 2002 6:47 PM To: gam...@li... Subject: RE: [GD-General] Overhead of RTTI > > Objects should inherit at most ONE object, and implement as many > > interfaces as needed. Interfaces should expend at most ONE > interface. > > Can you explain more carefully? I didn't really understand > the second rule. > That second rule is just to say that you never need MI at interface level. Just define separate interfaces. I'm even wondering if one would need inheritance for interfaces at all (apart from a "root" interface like the COM's IUnknown). Objects on the opposite do need MI for interface implementation. Here, we are trying to use different words for inheritance: Object To Object inheritance = Override (the "IS A" relationship). Object To Interface inheritance = Implementation. Interface To Interface inheritance = Expansion. (of course there is never any Interface To Object inheritance). Nicolas ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Gamedevlists-general mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=557 |