--KCXyoJ//PRyfzsc9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Tobias Peters (tpeters / uni-oldenburg.de) wrote:
> On Mon, 10 Mar 2003, Seth Kurtzberg wrote:
> > ANSI C is a proper subset of C++, so not "to some degree", 100%.
>=20
> Sorry for OT, but this is incorrect. Latest Stroustrup still has a
> section on the incompatibilities. Think of compiling this with a c/c++
> compiler:
>=20
> int main(int virtual, char * protected[]) { return virtual; }

There's more where that comes from:

  int a, b, c;
  a =3D b //* fun! */ c;=20

and of course, then there's this:

  void foo();

  int main(int argc, char *argv[]) {
    foo(argc, argv);
    return EXIT_SUCCESS;
  }

  void foo(int c, char **v) {
    printf("%d\n", c);
  }

Both the above examples are valid ANSI C, but they are _not_ valid C++.

> IIRC code that works in both languages but with different semantics
> exists.
>=20
> Your Statement would be true if you s/C++/Objective-C/. Maybe you
> think of that?
>=20
>=20
> To the OP: Maybe you're interested in the LotY (Language of the=20
> Year, http://www.pragmaticprogrammer.com/loty/ ) project.
>=20
>   T
>=20

--=20
Paul Duncan <pabs / pablotron.org>        pabs in #gah (OPN IRC)
http://www.pablotron.org/               OpenPGP Key ID: 0x82C29562

--KCXyoJ//PRyfzsc9
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+cg3lzdlT34LClWIRAn99AJ9pq4XwuOatA1qZXVUj8yD6YiazmgCgqZao
NoIGDvCFV550hVj2kfhPr4k=
=SFSU
-----END PGP SIGNATURE-----

--KCXyoJ//PRyfzsc9--

* Tobias Peters (tpeters / uni-oldenburg.de) wrote:
> On Mon, 10 Mar 2003, Seth Kurtzberg wrote:
> > ANSI C is a proper subset of C++, so not "to some degree", 100%.
>=20
> Sorry for OT, but this is incorrect. Latest Stroustrup still has a
> section on the incompatibilities. Think of compiling this with a c/c++
> compiler:
>=20
> int main(int virtual, char * protected[]) { return virtual; }

There's more where that comes from:

  int a, b, c;
  a =3D b //* fun! */ c;=20

and of course, then there's this:

  void foo();

  int main(int argc, char *argv[]) {
    foo(argc, argv);
    return EXIT_SUCCESS;
  }

  void foo(int c, char **v) {
    printf("%d\n", c);
  }

Both the above examples are valid ANSI C, but they are _not_ valid C++.

> IIRC code that works in both languages but with different semantics
> exists.
>=20
> Your Statement would be true if you s/C++/Objective-C/. Maybe you
> think of that?
>=20
>=20
> To the OP: Maybe you're interested in the LotY (Language of the=20
> Year, http://www.pragmaticprogrammer.com/loty/ ) project.
>=20
>   T
>=20

--=20
Paul Duncan <pabs / pablotron.org>        pabs in #gah (OPN IRC)
http://www.pablotron.org/               OpenPGP Key ID: 0x82C29562
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+cg3lzdlT34LClWIRAn99AJ9pq4XwuOatA1qZXVUj8yD6YiazmgCgqZao
NoIGDvCFV550hVj2kfhPr4k=
=SFSU
-----END PGP SIGNATURE-----