On Oct 13, 2011, at 6:53 AM, Paolo Carlini wrote: >> Why not support it in Obj-C++, too? > > Yes I briefly wondered that but I know *so* little about that front end... Do > you think we can just add it? Probably yes ;)
The ground rule is, make ObjC behave just like C, unless an ObjC expert decides differently. The C++ rule is the same. The mental model is to think of the Obj modifier as a slight fix, modifier on the language. Rather, than, copy the entire language, and then forever have to put into the tree, every new feature from the base language. gcc/cp was done in the copy the world (and suffers from that in various ways) style. Obj tries hard to be in the, a few small patches style. It'd be nice if we had NotObjC instead of ObjC, and NotObjC++ instead of ObjC++ to reduce the burden on regular folks. Yes, it is always safe. Thanks.