[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with my first app
From: |
Philippe C.D. Robert |
Subject: |
Re: Problem with my first app |
Date: |
Sun, 14 Oct 2001 21:22:28 +0200 |
On Sun, 14 Oct 2001 16:25:40 +0100
Richard Frith-Macdonald <richard@brainstorm.co.uk> wrote:
<snip>
> >> #include <Foundation/Foundation.h>
> >> #include <AppKit/AppKit.h>
> >
> > 2 minor issues:
> >
> > - AppKit.h already includes Foundation.h
> > - ObjC headers should be #imported, not #included
>
> Actually the second point is a matter of taste ...
> use of #import is in fact deprecated by the compiler.
> The rationale I read for it being deprecated is that the
> use of protective #ifndef and #defines in the headers is
> preferred because it makes the way the header is meant to
> be used explicit.
I did not knew that, but if this is true, then I consider that as a step
backwards.
What are the reasons for this and who made decided upon that?
-Phil
--
Philippe C.D. Robert
Software Engineer
Silicon Graphics, Inc.
- Problem with my first app, PERON Stéphane, 2001/10/13
- Re: Problem with my first app, Jeff Teunissen, 2001/10/13
- Re: Problem with my first app, Pascal Bourguignon, 2001/10/13
- Re: Problem with my first app, Philippe C.D. Robert, 2001/10/14
- Re: Problem with my first app, Richard Frith-Macdonald, 2001/10/14
- import/include philosophical Was: Problem with my first app, Pascal Bourguignon, 2001/10/14
- Re: Problem with my first app,
Philippe C.D. Robert <=
- Re: Problem with my first app, Pascal Bourguignon, 2001/10/14
- Re: Problem with my first app, Nicola Pero, 2001/10/14
- Re: Problem with my first app, Nicola Pero, 2001/10/14
- Re: Problem with my first app, Philippe C.D. Robert, 2001/10/14
Re: Problem with my first app, Nicola Pero, 2001/10/13
Re: Problem with my first app, Pascal Bourguignon, 2001/10/13