Re: GNU Objective-C runtime questions

Sébastien Pierre <[email protected]>
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
Le 13 déc. 04, à 04:35, Adam Fedor a écrit :

>
> On Dec 10, 2004, at 1:00 AM, Sébastien Pierre wrote:
>>
>> In this file, I notice that the "GS_EXPORT void 
>> GSObjCAddClasses(NSArray *classes);" method could be split into an 
>> "GSObjCAddClass" and an "GSObjcAddClasses".
>>
>> For the moment, I have to create an NSArray with only one classe to 
>> add it, which is not really efficient. Would you consider adding a 
>> "GSObjCAddClass" method ?
>>
>
> I think the interface is that way because it is better in general (at 
> least for GNU) to insert a number of classes at once. The new function 
> you propose would be little more than what you would have to do to put 
> a class into and array.

Actually, the code necessary for this function is already contained in 
the `GSObjCAddClasses' implementation. The trick would be simply to 
separate this code in a `GSObjCAddClass'.

If I send a patch, is there a chance for it to be accepted ?

  -- Sébastien

--
«On ne boit pas du vin avec un CheeseBurger dans les mains.»
<http://www.type-z.org>                   -- Zoé D. on houtskool
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.