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/


_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to