bug-gnustep
[Top][All Lists]
Advanced

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

Re: GSObJCRuntime (subclasses)


From: David Ayers
Subject: Re: GSObJCRuntime (subclasses)
Date: Sun, 17 Oct 2004 12:31:25 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

Markus Hitter wrote:

Am 16.10.2004 um 20:03 schrieb Matt Rice:

+#ifdef GNU_RUNTIME
+ for (aClass = cls->subclass_list;aClass;aClass=aClass->sibling_class)
+    {
+      [result addObject:aClass];
+    }
+#endif


You should raise an exception on on others than GNU runtimes until it is implemented there as well? This way you return a wrong result without further notice.


For now a

#else
#warning not implemented for the NeXT_Runtime

should suffice. I had already indicated to Matt that I'll "fill in the blanks" as soon as it's in.

I'm still trying to figure out how to do this efficiently for the Apple runtime (i.e. without having to walk the entire class list and test each class). Any expert opinion is appreciated. If worse comes to worse, I'll cache the result and clear it by using some dummy class which listens for NSBundleDidLoadNotifications.

Cheers,
David




reply via email to

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