[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #import is obsolete

From: Jeff Teunissen
Subject: Re: #import is obsolete
Date: Sat, 05 Jul 2003 09:01:53 -0400

Chris Hanson wrote:

> On Friday, July 4, 2003, at 04:25  PM, Philippe C.D. Robert wrote:
> > #import is deprecated, instead #include should be used in conjunction
> > with include guards. See previous threads about this topic.
> The #import directive is *not* deprecated in Objective-C and you should
> *not* switch to #include with include guards; Apple owns the
> Objective-C language specification and I don't recall them ever saying
> any such thing.

No, Apple own the trade mark. No specification of the language exists, and
even if it did, it couldn't be "owned".

> Yes, there have been plenty of threads about this over the years.
> Unfortunately, the default build of GCC continues to not conform to the
> language standard and emit obsolete warnings.

The warnings exist because #import is badly-defined. It doesn't even
always work correctly (read: "as intended") on Mac OS X, and didn't always
work correctly on NeXTstep/OPENSTEP either.

| Jeff Teunissen  -=-  Pres., Dusk To Dawn Computing  -=-  deek @ d2dc.net
| GPG: 1024D/9840105A   7102 808A 7733 C2F3 097B  161B 9222 DAB8 9840 105A
| Core developer, The QuakeForge Project        http://www.quakeforge.net/
| Specializing in Debian GNU/Linux              http://www.d2dc.net/~deek/

reply via email to

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