Go to Google Groups Home    alt.os.development
Re: Ideas on RTTI support?

Rod Pemberton <do_not_h...@nohavenot.cmm>

"Scott Balmos" <sbal...@fastmail.fm> wrote in message

news:4a516244-9d26-4e26-b46a-9d5a0b0823fd@m19g2000yqk.googlegroups.com...

> [snip]
> Has anyone ever attempted writing C++ RTTI support in an OS, if not in
> a kernel?

No, I use C.  I'll listen to your idea though.  But, I'm not familiar with
RTTI.   Since I'm not, could you explain why or what you're wanting to do in
your OS?

I mean, from what I've been able to gather about RTTI, it's a C++ feature
that apparently allows you to perform a validity check on a type cast or
type conversion at runtime instead of at compile time.  What advantage does
doing this at runtime have?  What I'm trying to ask is, once your code is
compiled and passes the compile time checks for a specific cast or
conversion, why would it also need to do a runtime check?  I'm assuming this
has something to do with C++'s programming paradigm...  Overloading?

Rod Pemberton