| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Borland Bashing |
ZZ>
> JdeBP> PE>
> JdeBP> > E.g. how many people don't see 3 things in
> JdeBP> > the following program that make it non-ISO?
> JdeBP> >
> JdeBP> > // Print hello world!
> JdeBP> >
> JdeBP> > void main(int argc, char **argv, char **envp)
> JdeBP> > {
> JdeBP> > printf("hello world\n");
> JdeBP> > }
> JdeBP> PE>
> JdeBP>
> JdeBP> Three ? I see at least five. [...]
>
> PMFJI, but, there is no particular reason why this is C code as
> opposed to C++ code [...] Perhaps I'm missing something in the thread.
ZZ>
You are. You are missing the fact that Paul is pretty hot on
standards, and he wouldn't make the mistake of referring to an ISO C++
standard when no such standard yet exists. (-:
Nevertheless, even assuming the C++ Working Paper as an ISO standard
there are still three items that are non-conformant (wrong return type
from `main', POSIX 1003 extension for environment pointer, and missing
header).
( And if Paul is listening, he may care to note that the current C++
WP is severely broken when it comes to `main', and the current
wording differs in several significant respects from ISO C. )
There's a whole echo devoted to the C++ language, incidentally, where
these sorts of discussions are better placed. It's called CPLUSPLUS.
> JdeBP <
___
X MegaMail 2.10 #0:
--- Maximus/2 3.00
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 517 628 704 713/888 800/1 7877/2809 @PATH: 440/4 141/209 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.