• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re[2]: Preprocesor ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re[2]: Preprocesor ?


  • Subject: Re: Re[2]: Preprocesor ?
  • From: Matt Austern <email@hidden>
  • Date: Sun, 28 Nov 2004 00:45:33 -0800

On Nov 27, 2004, at 8:01 PM, Igor Shmukler wrote:

you are using (".c" for C; ".cc" or ".cpp" for C++; etc. There are
generally
well-accepted extensions for these files, so it makes sense to
follow those
conventions.)

Helping out someone is great. You are a nice person.

However, .cc is depricated. As far as I know standard says it has to be .cpp.

In general a language standard covers naming format. Personally, I would just like you suggest to use plain-text. If vi(1) is not be happy with it, we cannot call this a real "C" source.

The C++ standard, ISO/IEC 14882 (2003), does not say anything about the names of source files. This is left up to implementations.


The GCC compiler accepts a number of extensions, including .cc, .cpp, and .cxx. There's no reason, other than personal preference or your organization's coding standards, to prefer one over another. (I do recommend against using .C, though. It's fine as far as GCC is concerned, but it interacts poorly with case-insensitive file systems.)

			--Matt

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re[4]: Preprocesor ?
      • From: Igor Shmukler <email@hidden>
References: 
 >Re[2]: Preprocesor ? (From: Igor Shmukler <email@hidden>)

  • Prev by Date: Re: Re[2]: Preprocesor?
  • Next by Date: Re[4]: Preprocesor ?
  • Previous by thread: Re: Re[2]: Preprocesor?
  • Next by thread: Re[4]: Preprocesor ?
  • Index(es):
    • Date
    • Thread