bug-gnustep
[Top][All Lists]
Advanced

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

[bug #32621] enumerateObjectsUsingBlock: produces strange log


From: Tom Davie
Subject: [bug #32621] enumerateObjectsUsingBlock: produces strange log
Date: Mon, 28 Feb 2011 11:26:00 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_6) AppleWebKit/534.22+ (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4

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/




reply via email to

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