TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DARIN MCBRIDE
from: NEIL HELLER
date: 1997-09-18 20:43:00
subject: WHY THIS CONSTRUCTION?

NH>         enum status (out, in);
 
DM> enum status {out, in};  // :-)
My fingers just aren't what they used to be.  Thanks for the
correction.  Actually earlier in the day I was trying to learn how to
ride a motorcycle and dropped it - my left arm is in a cast.
NH> const button::status out = button::out;
It just seems to me as though there is an excess of verbiage there. 
Had I first declared panic to be an instance of class button it seems
as though the above line would be totally unnecessary for use as:
if (panic.status) {
would assume an "in" position for status (or whatever I had enumerated
as not zero).
Obviously I'm dead wrong in my assessment of the situation.  Can you
(or anybody for that matter) point me in the direction of concise (and
easily understandable) explaination of this?
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

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™.