From 5561605594470856524
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,ccb40040597f37a7
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2003-03-06 10:33:50 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!mutlu.news.demon.net!demon!mail2news.demon.co.uk!devnull
From: hyrosen@mail.com (Hyman Rosen)
Newsgroups: comp.std.c++
Subject: Re: Extending enums (was Re: Forward declaration of enum)
Date: Thu, 6 Mar 2003 18:33:49 +0000 (UTC)
Organization: KBC Financial Products
Lines: 13
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <1046958860.572715@master.nyc.kbcfp.com>
References: <pOqblMCSSSX+Ewcy@robinton.demon.co.uk> <memo.20030302145753.26945C@brangdon.madasafish.com> <m3n0kdt4cg.fsf@uniton.integrable-solutions.net> <mKY8a.1209$U24.78230781@newssvr21.news.prodigy.com> <g3r9a.13567$EN3.108729@newsfep4-glfd.server.ntli.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: mail2news.demon.co.uk 1046975629 11074 10.0.0.1 (6 Mar 2003 18:33:49 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Thu, 6 Mar 2003 18:33:49 +0000 (UTC)
X-Received: from mulga.cs.mu.oz.au ([128.250.1.22])
	by news.demon.co.uk with esmtp (Exim 4.05)
	id 18r0Bf-0002sT-00
	for mail2news@news.news.demon.net; Thu, 06 Mar 2003 18:33:47 +0000
X-Received: from localhost (localhost [[UNIX: localhost]]) by mulga.cs.mu.OZ.AU
	id FAA02410; Fri, 7 Mar 2003 05:33:43 +1100 (EST)
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Path: comp-std-cpp-robomod!not-for-mail
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Delivered-To: std-c++@ncar.ucar.edu
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4a) Gecko/20030302
X-Accept-Language: en-us, en
X-Newsgroups: comp.std.c++
X-Cache-Post-Path: master.nyc.kbcfp.com!unknown@fixedcost.nyc.kbcfp.com
X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/)
X-MailScanner: PASSED (v1.2.7 73338 h26DsNuF078199 mailbox1.ucsd.edu)
X-Spam-Status: No, hits=-11.3 required=5.0
	tests=IN_REP_TO,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES,
	      SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA,
	      X_ACCEPT_LANG
	version=2.41
Xref: archiver1.google.com comp.std.c++:18205

Lawrence Rust wrote:
> Wouldn't it be more logical to use inheritance?  Then one could write:
> enum highcolors: public lowcolors { pink, magenta, cyan };

This is backwards from normal inheritance - you can use the "base"
enum wherever the "derived" enum is required, but not vice versa.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



