Re: Extensions calling C++

From: Date: Tue, 11 Jul 2000 11:50:35 +0000
Subject: Re: Extensions calling C++
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-24181@lists.php.net to get a copy of this message
I'm for .cpp Quoting from the gcc manual: .c C source; preprocess, compile, assemble .C C++ source; preprocess, compile, assemble .cc C++ source; preprocess, compile, assemble .cxx C++ source; preprocess, compile, assemble .m Objective-C source; preprocess, compile, assemble .i preprocessed C; compile, assemble .ii preprocessed C++; compile, assemble So, cpp is the C Preprocesor, but not the file extention of preprocessed C -Jade. ps: though, .cxx isn't really bad either On Mon, Jul 10, 2000 at 08:53:36PM -0600, Joey Smith wrote: > I agree with Sascha on this one. .cpp looks like "C Preprocesor" to me... > > One reason: > man cpp > > On Sun, 9 Jul 2000, Zeev Suraski wrote the following to Sascha Schumann : > > > At 23:47 09/07/2000, Sascha Schumann wrote: > > >On Sun, 9 Jul 2000, Zeev Suraski wrote: > > > > > > > At 23:08 09/07/2000, Sascha Schumann wrote: > > > > >.cpp sucks, because cpp is the C preprocessor. > > > > > > > > Is that a common convention? I don't think gcc generates .cpp files (you > > > > choose which file to redirect it to..?) > > > > > >Nope, it is just the name which is misleading. Imagine a file called > > >foo.lex which is handled by yacc. > > > > Well, I for once would have never been mislead by .cpp; I suspect most > > others would also expect .cpp to be C++ and not a preprocessed C file, > > going all the way back to the days of Turbo C++. > > > > What do the rest of you think? > > > > Zeev > > -- > > Zeev Suraski <zeev@zend.com> http://www.zend.com/ > > > > > > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- =============================================================================== Jade Nicoletti Nicoletti Net Services Tel. 01 240 4774 Geschäftsleitung Postfach 2519 Fax 01 240 4775 System-Administration 8021 Zürich ============================================[ Weitere Infos: http://nns.ch/ ]==

« previous php.dev (#24181) next »