mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
([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:
parent
57ea00ebd5
commit
e819b08f9c
1 changed files with 5 additions and 1 deletions
|
@ -93,12 +93,16 @@
|
|||
/* To deal with behavior over-enthusiasm. Will be fixed later. */
|
||||
- (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
|
||||
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);
|
||||
#endif
|
||||
}
|
||||
@end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue