add more isreadable/iswriteable/isreadonly functions #3872

Merged
merged 1 commit into from Jul 29, 2013

Projects

None yet

3 participants

@stevengj
Member

We already export these functions, this just adds definitions for more stream types.

(It would be nice to add them for File objects too, but that seems like it requires one to modify libuv to add a new function that calls fcntl(fd, F_GETFL) or the Windows equivalent thereof.)

@stevengj
Member

PS. Note that we aren't entirely consistent on the spelling. We have iswriteable but IOBuffer.writable, for example. According to Google, the spelling "writable" is more common, so we might consider switching and deprecating the old spelling.

@Keno Keno merged commit 1ffed5d into JuliaLang:master Jul 29, 2013

1 check failed

default The Travis CI build could not complete due to an error
Details
@Keno
Member
Keno commented Jul 29, 2013

I will merge this an we can do the rename/deprecation in a separate commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment