468,457 Members | 1,563 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,457 developers. It's quick & easy.

RTTI in C

Neo
what is RTTI? and how to implements it? give me sourceful link for
learn and implements it (using standard C mean portable).

regards,
-aims

Jul 26 '06 #1
10 4247
Neo said:
what is RTTI?
Since it's upper case, my money would be on a macro name.
and how to implements it?
#define RTTI 42

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Jul 26 '06 #2
Neo <mo******@gmail.comwrote:
what is RTTI?
http://www.google.com/search?q=rtti
and how to implements it? give me sourceful link for
learn and implements it (using standard C mean portable).
STFW.

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Jul 26 '06 #3
funny.
Richard Heathfield wrote:
Neo said:
what is RTTI?

Since it's upper case, my money would be on a macro name.
and how to implements it?

#define RTTI 42

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Jul 26 '06 #4

Neo wrote:
what is RTTI? and how to implements it? give me sourceful link for
learn and implements it (using standard C mean portable).

regards,
-aims
If you don't know what it is, why do you want to know how to implement
it? What were you planning on using it for?

Jul 26 '06 #5


Neo wrote On 07/26/06 10:45,:
what is RTTI? and how to implements it? give me sourceful link for
learn and implements it (using standard C mean portable).
Round Trip Time Inconsistency. This is a reference to
the so-called "twin paradox" of Special Relativity, in which
one twin takes a high-speed journey while leaving the other
behind, and upon return discovers that their ages are no
longer the same.

RTTI cannot be implemented in strictly conforming C
because of the requirement that the travelling twin must
move at high speed. The C Standard says nothing about
speed, which is purely an artifact of the implementation
and not a property of the language. Therefore, any attempt
to demonstrate RTTI necessarily involves the implementation-
dependent concept of "speed" and is thus non-portable.

--
Er*********@sun.com

Jul 26 '06 #6
Eric Sosman said:
>

Neo wrote On 07/26/06 10:45,:
>what is RTTI? and how to implements it? give me sourceful link for
learn and implements it (using standard C mean portable).

Round Trip Time Inconsistency. This is a reference to
the so-called "twin paradox" of Special Relativity, in which
one twin takes a high-speed journey while leaving the other
behind, and upon return discovers that their ages are no
longer the same.

RTTI cannot be implemented in strictly conforming C
because of the requirement that the travelling twin must
move at high speed.
But it could be modelled to a satisfactory degree of accuracy.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Jul 26 '06 #7
Eric Sosman wrote:
>
Neo wrote On 07/26/06 10:45,:
>>what is RTTI? and how to implements it? give me sourceful link for
learn and implements it (using standard C mean portable).


Round Trip Time Inconsistency. This is a reference to
the so-called "twin paradox" of Special Relativity, in which
one twin takes a high-speed journey while leaving the other
behind, and upon return discovers that their ages are no
longer the same.
There's a time inconsistency between wanting to implement something
before knowing what that something is!

Did I get it? ;-)

with respect,
Toni Uusitalo

Jul 26 '06 #8
Run-time type identification

"Neo" <mo******@gmail.com>
??????:11**********************@s13g2000cwa.google groups.com...
what is RTTI? and how to implements it? give me sourceful link for
learn and implements it (using standard C mean portable).

regards,
-aims

Jul 27 '06 #9
On Wed, 26 Jul 2006 14:53:52 +0000, Richard Heathfield
<in*****@invalid.invalidwrote:
>Neo said:
>what is RTTI?

Since it's upper case, my money would be on a macro name.
>and how to implements it?

#define RTTI 42
I get a similar result, and I'm prepared for changes.

#define RUN 1
#define TIME 5
#define TYPE 12
#define INFORMATION 24
#define R RUN
#define T1 TIME
#define T2 TYPE
#define I INFORMATION
#define RTTI (R + T1 + T2 + I)

Regards
--
jay
Jul 27 '06 #10
Bright He wrote:
Run-time type identification
1. Don't top-post. Your reply belongs following or interspersed with
properly trimmed quotes.

2. Your answer is incorrect. It does NOT mean that in C, as there is no
such thing.

Brian
Jul 27 '06 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Rick | last post: by
2 posts views Thread by shishir | last post: by
6 posts views Thread by Kleidemos | last post: by
9 posts views Thread by Agoston Bejo | last post: by
3 posts views Thread by Steven T. Hatton | last post: by
3 posts views Thread by Neo | last post: by
2 posts views Thread by Chameleon | last post: by
1 post views Thread by subhajit12345 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.