([NSGSet -isEqual:]): Call isEqualToSet: (in superclass).

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1444 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-04-17 19:21:57 +00:00
parent 57ea00ebd5
commit e819b08f9c

View file

@ -93,12 +93,16 @@
/* To deal with behavior over-enthusiasm. Will be fixed later. */ /* To deal with behavior over-enthusiasm. Will be fixed later. */
- (BOOL) isEqual: other - (BOOL) isEqual: other
{ {
/* xxx What is the correct behavior here. #if 1
return [self isEqualToSet: other];
#else
/* xxx What is the correct behavior here?
If we end up calling [NSSet -isEqualToSet:] we end up in If we end up calling [NSSet -isEqualToSet:] we end up in
an infinite loop, since that method enumerates the set, and an infinite loop, since that method enumerates the set, and
the set enumerator asks if things are equal... the set enumerator asks if things are equal...
[Huh? What am I saying here?] */ [Huh? What am I saying here?] */
return (self == other); return (self == other);
#endif
} }
@end @end