<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On May 1, 2013, at 11:57 AM, jahanian <<a href="mailto:fjahanian@apple.com">fjahanian@apple.com</a>> wrote:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div>On May 1, 2013, at 11:54 AM, Jordan Rose <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:</div><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div>On May 1, 2013, at 11:51 , John McCall <<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>> wrote:</div><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On May 1, 2013, at 10:55 AM, Jordan Rose <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:<br><blockquote type="cite">I'm not sure it's right to remove 'const'—consider global string constant declarations:<br><br>extern NSString * const MyNotificationName;<br><br>I think you'll have to explicitly remove ObjC lifetime attrs only.<br></blockquote><br>Why is this a problem? You think the user wants to see "cannot initialize object of type 'NSMutableString *' with expression of type 'NSString * const'"?<br><br>As long as the value's been lvalue-to-rvalue-converted, I see no reason to report top-level qualification.<br></div></blockquote></div><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Hm, point. I didn't realized this was just for rvalues. Thanks for the explanation.</div></blockquote><div><br></div>Yes, but when we are providing documentation, we want to preserve the ‘const’- ness:</div><div><br></div><div><div>@interface NSMutableArray : NSArray </div><div>{</div><div>//! This is the name.</div><div> NSString *const Name;</div><div>}</div><div>//! This is initWithLabel comment.</div><div>- (NSString *)initWithLabel:(NSString * const)label;</div><div>@end</div></div></div></blockquote><div><br></div><div>I'm not sure what you mean by "providing documentation". The 'const' qualifier here is meaningless. If this were a method definition, it would prevent assignment to 'label'; but it isn't a method definition, so it does nothing.</div><div><br></div><div>John.</div></div></body></html>