| delorie.com/archives/browse.cgi | search |
| From: | sparhawk AT eunet DOT at (Gerhard Gruber) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: enum problem |
| Date: | Tue, 16 Jun 1998 21:32:49 GMT |
| Organization: | Customer of EUnet Austria |
| Lines: | 23 |
| Message-ID: | <358edb0c.3952806@news.Austria.EU.net> |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 980615200924 DOT 11445A AT is> |
| NNTP-Posting-Host: | e190.dynamic.vienna.at.eu.net |
| Mime-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Destination: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Gruber Gerhard
Group: comp.os.msdos.djgpp
Date: Mon, 15 Jun 1998 20:12:08 +0300 (IDT):
>C++ is a different language, not a superset of C. (See section 8.3 of the
>FAQ for a somewhat funny demonstration of this.) I don't know enough
>about C++ to tell whether enum handling is one of the cases where the two
>languages diverge.
Not really. C++ is more stricter about this but I think that this is ok
because if you define an enum than you want names for your values and since
you didn't provide it this is an error. But I guess this is mostly opinion and
open to discussion.
--
Bye,
Gerhard
email: sparhawk AT eunet DOT at
g DOT gruber AT sis DOT co DOT at
Spelling corrections are appreciated.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |