bugGNUstep - Bugs: bug #36685, NSStreamDelegate is a formal...

 
 

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

bug #36685: NSStreamDelegate is a formal protocol now

Submitted by:  Thomas Davie <beelsebob>
Submitted on:  Tue 19 Jun 2012 12:25:30 PM UTC  
 
Category: Base/FoundationSeverity: 4 - Important
Item Group: Change RequestStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Fri 20 Dec 2013 10:48:52 AM UTC, comment #4:

Marcus submitted a patch for this.

Richard Frith-Macdonald <CaS>
Project Member
Mon 09 Jul 2012 06:33:40 PM UTC, comment #3:

There's no problem adding protocols (we can just the version macros to have the protocol for recent OSX versions and no protocol when building for older versions) but ... this one uses the @optional keyword.

That means having it be compiler specific ... we have different versions of gcc and different versions of clang supporting different language additions :-(

That really means we would need to make use of this protocol conditional upon compiler features tested at build-time ... so I think this is really conditional upon someone designing/implementing a mechanism to make things used in headers conditonal upon the compiler being used.

Richard Frith-Macdonald <CaS>
Project Member
Wed 20 Jun 2012 05:00:46 PM UTC, comment #2:

This is a change request, not a bug. It is very important, however, that we consider this.

Gregory John Casamento <gcasa>
Project Administrator
Tue 19 Jun 2012 12:27:24 PM UTC, comment #1:

Woops sorry, pressed return by accident...

Description:
Apple defines NSStreamDelegate as a formal protocol now. This causes valid foundation code not to compile.

Steps to reproduce:
1) create a new class @interface A : NSObject<NSStreamDelegate> @end
2) compile the code

Expected results:
Compilation success

Actual results:
Failure due to the NSStreamDelegate protocol not being defined

Notes:
Apple's definition:

@protocol NSStreamDelegate <NSObject>
@optional
- (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode;
@end

Thomas Davie <beelsebob>
Tue 19 Jun 2012 12:25:30 PM UTC, original submission:
Thomas Davie <beelsebob>

 

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 CaS (Posted a comment)
  • -unavailable- added by gcasa (Posted a comment)
  • -unavailable- added by beelsebob (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
    Fri 20 Dec 2013 10:48:52 AM UTCCaSStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 20 Jun 2012 05:00:46 PM UTCgcasaSeverity3 - Normal=>4 - Important
      Item GroupBug=>Change Request

    Back to the top


    Powered by Savane 3.1-cleanup