Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!m.cs.uiuc.edu!shirley From: shirley@m.cs.uiuc.edu Newsgroups: comp.object Subject: object type query Message-ID: <77500017@m.cs.uiuc.edu> Date: 30 Nov 89 17:36:38 GMT Lines: 21 Nf-ID: #N:m.cs.uiuc.edu:77500017:000:500 Nf-From: m.cs.uiuc.edu!shirley Nov 29 21:40:00 1989 I find myself with a C++ problem. I have a list of pointers to objects of type SUPER. SUPER has subclasses SUBi, i = 1, 2, 3,... I want to go through the list and extract the pointers that reference objects of class SUB3 say. To do this I either need a type function or flag in the superclass which seems like a hack (especially if I don't own SUPER). Am I 1) making a design mistake? 2) missing a C++ technique? 3) finding a problem with C++? Thanks, pete shirley shirley@m.cs.uiuc.edu Brought to you by Super Global Mega Corp .com