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

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #32621: enumerateObjectsUsingBlock: produces strange log

Submitted by:  Tom Davie <beelsebob2>
Submitted on:  Mon 28 Feb 2011 11:25:59 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

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

Is this problem still current, Tom?

Riccardo Mottola <rmottola>
Project 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>
Project 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 Jun 2014 10:30:12 PM UTCrmottolaStatusPostponed=>Invalid
      Open/ClosedAnalyzed=>Closed
    Thu 19 Jan 2012 10:35:21 AM UTCCaSOpen/ClosedOpen=>Analyzed
    Thu 19 Jan 2012 10:34:45 AM UTCCaSStatusNone=>Postponed

    Back to the top


    Powered by Savane 3.1-cleanup1