Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!netcom!aed From: aed@netcom.COM (Andrew Davidson) Newsgroups: comp.lang.c++ Subject: asking an object for its type Message-ID: <23984@netcom.COM> Date: 14 Feb 91 04:43:16 GMT Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} Lines: 17 Here is my problem, I have some processing that only applies for certain types of objects. If an object is not of the correct type I want to do some error stuff. The problem is how do I fiqure out what the type of the object is. I could return a string, ie provide an istype member function but then the calling function would have to know what the string is in advance, It also wont work with inheritance Thanks Andy -- ----------------------------------------------------------------- "bede-bede-bede Thats all Folks" Porky Pig Andy Davidson Woodside CA. aed@netcom.COM -----------------------------------------------------------------