This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
ObjC doc: add class extensions to the release notes
- From: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Fri, 10 Dec 2010 10:57:54 +0100 (CET)
- Subject: ObjC doc: add class extensions to the release notes
This patch documents in the release notes that GCC 4.6 supports Objective-C
class extensions.
Ok to commit ?
Thanks
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