Newsgroups: comp.lang.c++
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Any interest in making C++ a real superset of ANSI C?
Message-ID: <1989May28.235216.29243@utzoo.uucp>
Organization: U of Toronto Zoology
References: <7435@hoptoad.uucp> <9395@alice.UUCP>
Date: Sun, 28 May 89 23:52:16 GMT

In article <9395@alice.UUCP> ark@alice.UUCP (Andrew Koenig) writes:
>> ... But the gross change that makes "struct foo {...};"
>> equivalent to "typedef struct foo {...} foo;" is too much to bear.
>
>Really?  Exactly what about it is unbearable?

All the code it breaks.  "struct foo foo;" is not at all uncommon when
only one variable of a type is needed.

>Here's an example of why C++ does it the way it does.
>
>	class Complex {		...

Note the word "class" here but "struct" above.

>... Changing it at this point would break essentially
>every non-trivial C++ program ever written.

Note if the change only affects "struct", not "class".
-- 
Van Allen, adj: pertaining to  |     Henry Spencer at U of Toronto Zoology
deadly hazards to spaceflight. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
