Re: Proper use of Header files
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
|
_______________________________________________
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