On Fri Aug 20 17:59:16 EDT 2010, lyn...@orthanc.ca wrote: > >> Should any program which can run under p9p and plan9 ever be compiled with > >> g++ or another c++ compilers? Otherwise is it necessary to check for > >> __cplusplus? > > C is a subset of C++, so a C++ program can validly include native C code.
that's no longer correct. c is not a subset of c++. however, there is a subset of c++ and a subset of c that can be compiled by either compiler. trivially, int catch, delete, friend, new, operator, protected, public, template, this, throw, try, virtual; works in c but not c++. - erik