delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/15/13:13:35

Date: Mon, 15 Jun 1998 20:12:08 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: sl <sl AT psycode DOT com>
cc: DJGPP mailing list <djgpp AT delorie DOT com>
Subject: Re: enum problem
In-Reply-To: <19980615161158063.AAA190@portD58.Generation.NET>
Message-ID: <Pine.SUN.3.91.980615200924.11445A@is>
MIME-Version: 1.0

On Mon, 15 Jun 1998, sl wrote:

> 	This is a C++ program.. I don't understand why C++ would act
> differently from C on this point since this 'feature' is derived from C
> in the first place.

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019