URL:
  <http://savannah.gnu.org/bugs/?32621>

                 Summary: enumerateObjectsUsingBlock: produces strange log
                 Project: GNUstep
            Submitted by: beelsebob2
            Submitted on: Mon 28 Feb 2011 11:25:59 AM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Using the block enumeration methods in NSArray (and my new one for NSSet)
causes an odd log to appear in the output, but otherwise does not have any
adverse effect:


~/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;
}





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32621>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to