Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!daver!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.lang.c++ Subject: Re: asking an object for its type Message-ID: <27E1825C.731F@tct.uucp> Date: 16 Mar 91 02:26:35 GMT References: <71034@microsoft.UUCP> <27D572F6.2A70@tct.uucp> <71199@microsoft.UUCP> Organization: Teltronics/TCT, Sarasota, FL Lines: 13 According to jimad@microsoft.UUCP (Jim ADCOCK): >I use "protocol" to mean that an object has to support a *set* of methods >correctly matching both in signature and meaning. Thus, I think your call >for an "isKindOf" test is the same requirement as I'm calling for. Apparently. The key thing is that two classes can have identical lists of public member functions, yet be unrelated. So if you find that your "protocol" matches up, that still proves nothing about the ancestry of the object; so that information is useless. -- Chip Salzenberg at Teltronics/TCT , "Most of my code is written by myself. That is why so little gets done." -- Herman "HLLs will never fly" Rubin