While this seems to work right, I'm getting a pretty odd behaviour with 
enumerateObjectsUsingBlock: producing an odd log.  Does anyone know what's up 
here?

~/Documents/Test$ ./obj/Test
Calling [GSInlineArray -enumerateObjectsUsingBlock:] with incorrect signature.  
Method has v24@0:8^{?=^vii^?}16, selector has v24@0:8@?16
2011-02-28 11:04:51.802 Test[25104] 0 - a
2011-02-28 11:04:51.805 Test[25104] 1 - b
2011-02-28 11:04:51.805 Test[25104] 2 - c
tatd2@GLaDOS:~/Documents/Test$ cat Test.m
#import <Foundation/Foundation.h>

int main(int argc, char **argv)
{
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    
    NSArray *array = [NSArray arrayWithObjects:@"a", @"b", @"c", nil];
    [array enumerateObjectsUsingBlock:^ void (id obj, NSUInteger idx, BOOL 
*stop)
     {
         NSLog(@"%lu - %@", idx, obj);
     }];
    
    [pool drain];
    return 0;
}

The same happens with my (mostly copied from array so no surprise) 
implementation for NSSet.  I've filed a bug report to go with this one (id 
32621).

Thanks

Tom Davie
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to