TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: BALOG PAL
from: ASHER DENSMORE-LYNN
date: 1997-07-22 02:53:00
subject: Sunir ventures into C++

20 Jul 97 11:24, Balog Pal wrote to Sunir Shah:
 SS>> I hate five major things about C++ so far:
 SS>> /* 2. Declaring data in random places */
 SS>> int HiIAmRandomlyDeclaredHere;
 BP> Another thing I did never forgive in C. I write my code. I need an
 BP> additional local. Why on earth I have to go up, search start of the
 BP> block and insert it there instead of putting it right there?
Code readability, and it makes it easier on the compiler, but the first one 
is the real one. Nothing but code readability. I programmed in BASIC for much 
too long; it was very painful to convert to C, but once I managed, I was 
ay.
Notice that a lot of Sunir's complaints are just what the compiler ALLOWS -- 
things that are bad coding practice. I agree; if I'm looking at your code, I 
don't want to have to wade around, looking for random declarations.
Think your functions through before you set hand to keyboard -- you really 
should know the vars you'll need before you do anything more than prototype 
it.
 SS>> */ long bar;
 SS>> int baz = (long)bar;
 BP> ??? What's the point in that?
That? Nothing. It's just an illustration. I must've missed this little buglet 
when I looked C++ over -- you can't override C++'s automatic type promotions, 
at least not like C programmers are used to.
Asher Densmore-Lynn 
... #@$ffwe99fjaljk ... Hey! Get the cat off the keyboard!
--- Squish v1.11
---------------
* Origin: Phaenix Rampant, 'Uhm... I hit it again!' (1:130/115)

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