Newsgroups: alt.os.development, comp.lang.misc
From: "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
Date: Fri, 19 Jun 2009 09:54:57 +0200
Local: Fri 19 June 2009 08:54
Subject: Re: Ideas on RTTI support?
On Fri, 19 Jun 2009 02:50:23 -0400, Rod Pemberton wrote: Checking is a wrong word, identification is a correct one. The type > "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 > I mean, from what I've been able to gather about RTTI, it's a C++ feature identification is necessary to be able to perform dynamic dispatch. Since C is does not have polymorphic objects there is no dispatch and no need in identification. As for OS support there are problems with it: 1. Reuse of the type identifiers (tags), after the type dies (leaving its 2. Global scope of the tags. In a distributed OS you will need to have 3. Persistence (stored polymorphic objects must keep their unique type 4. Language impedance. Some languages like C++ define the way type tags I guess that tags (and dispatching tables) would have much in common with -- You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||