nasty Objective-C++ bug
nasty Objective-C++ bug
- Subject: nasty Objective-C++ bug
- From: "Michael B. Johnson" <email@hidden>
- Date: Sun, 13 Jan 2002 16:38:34 -0800
Just filed a bug with Apple (#2840238), but thought others might have
seen this and have some workaround to get around the compiler crash -
the following generates an internal compiler error: (note: it also
crashes if you try and use !=)
#import <Foundation/Foundation.h>
@interface Boom : NSObject {
}
@end
@implementation Boom
+ (void)initialize
{
if (self == [Boom class]) {
}
}
@end
Inside this if I usually have a
[self setVersion:CURRENT_VERSION];
Have others seen this? Worked around it how?
--> Michael B. Johnson, Ph.D. -- email@hidden
--> Studio Tools, Pixar Animation Studios
-->
http://xenia.media.mit.edu/~wave