discuss-gnustep
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]