To: Jerry Coffin
Subject: Sunir ventures into C++
SS> Yes, I've finally broken down and learnt C++...
JC> ...or at least started to - I'm not sure _anybody_ completely knows it
JC> yet.
:-)
I'm nowhere close. Since when can you do this:
int foo( void ) const;
SS> 2) Is the icky void main(void) actually allowed in C++? Ugh...
JC> Sort of - C++ specifically allows for other implementation defined
JC> forms of main, rather than merely making all other forms undefined. In
JC> the end, it makes little or no real difference in how things work; if
JC> your implementation says you can use some other form of main, you can.
JC> Otherwise, you can't (at least dependably.)
Yippee. So main() is no longer a function. It's a mini-environment,
oblivious of the OS, like in Pascal. I thought C++ was supposed to be an
improved C? Pascal is going in the wrong direction. :)
There are some very good reasons to return values from main() and hard code
that into the standard, such as when you want to consider the rest of world
and not just Win95...
Oh wait, there is no standard........
*sigh*
SS
--- Maximus 3.01
---------------
* Origin: BitByters BBS, Rockland ON, Can. (613)446-7773 v34, (1:163/215)
|