diff options
-rw-r--r-- | docs/ReleaseNotes.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index b820e8dc3f..6c38c712e7 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -218,7 +218,21 @@ model can be used. <h3 id="objcchanges">Objective-C Language Changes in Clang</h3> <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = --> -<p>...</p> +<ul> + <li> + <p>It is now an error to compare against the addresses of Objective-C + literals. This is usually a simple mistake (using <code>==</code> instead + of <code>-isEqual:</code>), and the result depends on the implementation + of the various literals, none of which are guaranteed to be uniqued or + always newly-allocated.</p> + <p>In the past, we allowed comparisons against literal strings + (<code>@"..."</code>), since they are currently uniqued across + translation units at link time. This is an implementation detail and + should not be relied upon. If you are using such code, please use global + string constants instead (<code>NSString * const MyConst = @"..."</code>) + or use <code>-isEqual:</code>.</p> + </li> +</ul> <!-- = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = --> <h3 id="apichanges">Internal API Changes</h3> |