TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ROGER SCUDDER
from: KURT KUZBA
date: 1997-09-11 12:19:00
subject: WHY THE BRACES?

RS> TM> -->   Does it help you if I tell you that well designed
RS> TM> -->   code doesn't contain many switch statements?
RS> NH>   How many is too many?
RS>   He may be referring to the fact that Windows code was
RS>   notorious for very long and difficult switch
RS>   statements...
   In an API application, the whole WndProc() function is
   nothing but a huge switch statement to handle WM_ messages.
   In MFC applications, you never see the switch construct.
   Maybe there is a faction among C++ programmers who believe
   that there is no such thing as a well designed Windows
   program? ;)
> ] It's never funny when you have to explain it. [ Joe Friday ]
---
---------------
* Origin: *YOPS ]I[* 3.1 GIG * RA/FD/FE RADist * Milwaukee, WI (1:154/750)

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