Skip to content

NSFileHandle/NSPipe compatibility #1659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 13, 2018
Merged

Conversation

compnerd
Copy link
Member

No description provided.

In Objective-C, the fileHandleFor{Reading,Writing} property is mutable even on a
const instance.  Change the property to read/write.
Since these are meant to be read/write properties as per Objective-C, this needs
to be a stored property.  However, it is not possible to have stored properties
in an extension.  Move the definition into the actual class definition.  Default
initialize to a closure that will invoke `NSUnimplemented`.
@compnerd compnerd changed the title File pipe NSFile/NSPipe compatibility Aug 10, 2018
@compnerd
Copy link
Member Author

CC: @parkera @phausler

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

This work is needed to actually support SwiftSyntax on Linux

@compnerd
Copy link
Member Author

CC: @harlanhaskins

@compnerd compnerd changed the title NSFile/NSPipe compatibility NSFileHandle/NSPipe compatibility Aug 10, 2018
@compnerd
Copy link
Member Author

Thanks @parkera!

@compnerd compnerd merged commit 41e8b27 into swiftlang:master Aug 13, 2018
@compnerd compnerd deleted the file-pipe branch August 13, 2018 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants