From 34987d18d2174477802a722e17b05655be23beae Mon Sep 17 00:00:00 2001 From: mccallum Date: Fri, 22 Mar 1996 02:35:07 +0000 Subject: [PATCH] ([NSGSet -isEqual:]): Make this just compare the id's, not call [super isEqual:]. I did this to prevent an infinite loop while running checks/nsarchiver.m, but I have a feeling that the bug might be in map.c, not here. Look at this again! git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1254 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGSet.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/NSGSet.m b/Source/NSGSet.m index 607bfc253..38f92ad37 100644 --- a/Source/NSGSet.m +++ b/Source/NSGSet.m @@ -93,7 +93,12 @@ /* To deal with behavior over-enthusiasm. Will be fixed later. */ - (BOOL) isEqual: other { - return [super isEqual:other]; + /* xxx What is the correct behavior here. + If we end up calling [NSSet -isEqualToSet:] we end up in + an infinite loop, since that method enumerates the set, and + the set enumerator asks if things are equal... + [Huh? What am I saying here?] */ + return (self == other); } @end