bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #23727] NSDictionary with keys of different classes


From: Richard Frith-Macdonald
Subject: [bug #23727] NSDictionary with keys of different classes
Date: Fri, 27 Jun 2008 14:16:30 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_3; en-us) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.20

Update of bug #23727 (project gnustep):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #1:

1. We are trying to duplicate MacOS-X behavior ... this used to be to sort
dictionary keys if they all responded to compare:, but has changed to be to
sort if they are all strings.
I've changed the code in svn to match the new MacOS-X behavior ... which
should fix your problem with the dictionaries.

PS. keys need to support -hash and -copy as well as -isEqual:

2. You are using the new try/catch features of the compiler.  This won't work
unless you built gnustep with support for that enabled.  You should use the
standard NS_DURING ... NS_HANDLER ... NS_ENDHANDLER macros (see NSException.h)
if you want to catch exceptions.
Alternatively, you can configure gnustep-make with
--enable-native-objc-exceptions and then rebuild everything.  Don't ask me why
language level exceptions are not enabled by default ... I don't really know,
perhaps it's to encourage people to write code using the macros so the code
will work with older compilers.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?23727>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]