TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: SUNIR SHAH
from: BALOG PAL
date: 1997-07-20 11:24:00
subject: Sunir ventures into C++

                               Hi, Sunir Shah!
On 18 Jul 97  01:15:20 you wrote to Dan Mcgregor
 SS> I hate five major things about C++ so far:
 SS> /* 1. Passing by reference */
 SS> void foo( int& HeyIMagicallyAlterYourVariableWithoutTellingYou )
Hate that? Not having that make C a nearly not usable language.
 SS> /* 2. Declaring data in random places */
 SS> int HiIAmRandomlyDeclaredHere;
Another thing I did never forgive in C. I write my code. I need an additional
local. Why on earth I have to go up, search start of the block and insert it
there instead of putting it right there?
Another aspect: this way you have much better chance to initialise your local
vars to good values, and not forgetting to do that. At the beginning of the
block you must leave a plenty of vars uninited (or inited to something not
really appropriate) just bacause you will calculate the needed value later
on.
 SS> /* 3. Assembly comments */
Assembly comments? What compiler allows them? All mine allow only C or ANSI_C
style comments even in ASM blocks.
 SS> /* 4. C-style casts are outlawed as of the latest draft proposal
Good idea. Would be, if they did not defined one kilometer long keywords for
that and force usage of angle brackets. :-<
 SS> */ long bar;
 SS> int baz = (long)bar;
??? What's the point in that?
Paul
... Egy ‚vben van 313 eg‚sz t–rhet“ nap.  Meg 52 h‚tf“.  (Garfield)
--- OS/2 Warp
---------------
* Origin: The FlintStones' Cave in BedRock (2:371/20)

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