bugGNUstep - Bugs: bug #32621, enumerateObjectsUsingBlock:...

Group
 
 

bug #32621: enumerateObjectsUsingBlock: produces strange log

Submitter:  Tom Davie <beelsebob2>
Submitted:  Mon 28 Feb 2011 11:25:59 AM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 Dec 2013 01:46:11 PM UTC, comment #2: 

Is this problem still current, Tom?

Riccardo Mottola <rmottola>
Group Member
Thu 19 Jan 2012 10:34:45 AM UTC, comment #1: 

I can't find that error in the base source code, so I guess it's a runtime library issue ...

Richard Frith-Macdonald <CaS>
Group Member
Mon 28 Feb 2011 11:25:59 AM UTC, original submission:  

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

Tom Davie <beelsebob2>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rmottola (Posted a comment)
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by beelsebob2 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-06-05 rmottola StatusPostponed Invalid
        Open/ClosedAnalyzed Closed
    2012-01-19 CaS Open/ClosedOpen Analyzed
    2012-01-19 CaS StatusNone Postponed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code