Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!dogie.macc.wisc.edu!decwrl!sgi!shinobu!odin!delrey!shap From: shap@delrey.sgi.com (Jonathan Shapiro) Newsgroups: comp.lang.c++ Subject: Re: Re^2: Is there a way to tell which derived class an object belongs to? Message-ID: <3575@odin.SGI.COM> Date: 5 Feb 90 18:09:31 GMT References: <2815@draken.nada.kth.se> <636@tci.bell-atl.com> <7722@chaph.usc.edu> <645@tci.bell-atl.com> <133@dumbcat.UUCP> <3062@pur-phy> Sender: news@odin.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 13 In article <3062@pur-phy> sho@maxwell.physics.purdue.edu.UUCP (Sho Kuwamoto) writes: >What I'd like to see: >1) A sort of extensible enum. One you could add new members to > in separate .h files. For a change, I agree with a feature idea. I recently wanted this myself. The single inheritance notion would extend naturally to enums, and in several places would be very useful. Even multiple inheritance makes sense, assuming the compiler can verify that there are no enumeration value collisions. Jonathan Shapiro Silicon Graphics