Patchwork ObjC doc: add class extensions to the release notes

login
register
mail settings
Submitter Nicola Pero
Date Dec. 10, 2010, 9:57 a.m.
Message ID <1291975074.910926542@192.168.2.227>
Download mbox | patch
Permalink /patch/75073/
State New
Headers show

Comments

Nicola Pero - Dec. 10, 2010, 9:57 a.m.
This patch documents in the release notes that GCC 4.6 supports Objective-C
class extensions.

Ok to commit ?

Thanks
Mike Stump - Dec. 10, 2010, 4:59 p.m.
On Dec 10, 2010, at 1:57 AM, Nicola Pero wrote:
> This patch documents in the release notes that GCC 4.6 supports Objective-C
> class extensions.
> 
> Ok to commit ?

Ok.

Patch

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.6/changes.html,v
retrieving revision 1.74
diff -u -r1.74 changes.html
--- changes.html        8 Dec 2010 23:04:01 -0000       1.74
+++ changes.html        10 Dec 2010 09:54:57 -0000
@@ -452,6 +452,16 @@ 
     both in Objective-C and Objective-C++.  Currently the only supported
     attribute is <code>deprecated</code>.</li>
 
+    <li>Objective-C 2.0 class extensions are supported both in
+    Objective-C and Objective-C++.  A class extension has the same
+    syntax as a category declaration with no category name, and the
+    methods and properties declared in it are added directly to the
+    main class.  It is mostly used as an alternative to a category to
+    add methods to a class without advertising them in the public
+    headers, with the advantage that for class extensions the compiler
+    checks that all the privately declared methods are actually
+    implemented.</li>
+
     <li>As a result of these enhancements, GCC can now be used to
     build Objective-C and Objective-C++ software that uses Foundation
     and other important system frameworks with the NeXT runtime on