|
From: | Larry Campbell |
Subject: | [bug #36824] NSArchiver barfs on const values |
Date: | Tue, 10 Jul 2012 20:21:45 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_7_4; en-US) AppleWebKit/533.21.1+(KHTML, like Gecko, Safari/533.19.4) Version/5.11.1 OmniWeb/622.18.0 |
URL: <http://savannah.gnu.org/bugs/?36824> Summary: NSArchiver barfs on const values Project: GNUstep Submitted by: lcampbel Submitted on: Tue 10 Jul 2012 08:21:44 PM GMT Category: Base/Foundation Severity: 3 - Normal Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: If you do something like this: const unsigned char version = 1; [[coder encodeValueOfObjCType:@encode(typeof(version)) at:&version]; an exception is thrown, because the typestring is "rC" where the 'r' type specifier means 'const', but encodeValueOfObjCType:at: doesn't skip type specifiers. I think it should; Mac OS X does. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?36824> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |