Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ typeid()

Name: Anonymous 2006-01-11 12:59

Does anyone know how typeid() is implemented in C++???
I mean, how do I make a function like typeid() where I can pass the TYPE as a paramter.

Example:
int main()
{
    typeid(int);//<-- works of course
    f(int);//<-- how to do something like this
           //        without using macros or templates
}

Name: Anonymous 2006-01-16 5:43

>>50
Oh really?
If lower level languages
can't allow us to know implementation details at run time,
then how come typeid() does exactly that?

Come on man!
Lower level languages allows us to do MORE stuff
than higher level language.
Take JAVA and C++ for example.
JAVA can't communicate with hardware without C++ dlls.
HAH! SO THERE!

C++ RULZ!!!

There MUST be a way. U guys just suck.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List