TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: NEIL HELLER
from: THOMAS MAEDER
date: 1997-09-16 18:26:00
subject: Why this construction?

NH>         enum status (out, in);
This should be
enum status {out, in}; // curly braces
NH> const panic.status out = button::out;   ????
NH> I _think_ the question can be rephrased as "why must enums be always
NH> kept separate, apart from the objects to which they can apply?"
Because types are types and objects are objects.
What would it help you if this restriction wouldn't exist?
Thomas
---
 þ MM 1.0 #0113 þ Vertschaupeti Bachbummele
---------------
* Origin: McMeier & Son BBS (2:301/138)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.