• 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: Proper use of Header files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper use of Header files


  • Subject: Re: Proper use of Header files
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 28 Oct 2012 12:21:58 -0700


On Oct 28, 2012, at 11:49 AM, David Rowland <email@hidden> wrote:

The only exception I know of is when writing C++ templates. The compiler needs to see all the code so that it can instantiate it when necessary, which might occur anywhere.

Shared inline functions are another case where you have to put implementation into a header file.

But there’s pretty much no excuse for doing it in any other circumstances. If your cow-orkers do this, hit them with fish[1] until they fix their code.

—Jens

[1]: http://www.youtube.com/watch?v=IhJQp-q1Y1s
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Proper use of Header files
      • From: Crispin Bennett <email@hidden>
References: 
 >Proper use of Header files (From: koko <email@hidden>)
 >Re: Proper use of Header files (From: David Rowland <email@hidden>)

  • Prev by Date: Re: Proper use of Header files
  • Next by Date: Re: Instruments source line colors?
  • Previous by thread: Re: Proper use of Header files
  • Next by thread: Re: Proper use of Header files
  • Index(es):
    • Date
    • Thread