Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Update index checkbounds API #59

Merged
merged 1 commit into from
Aug 26, 2015

Conversation

mbauman
Copy link
Contributor

@mbauman mbauman commented Aug 26, 2015

Now formally supported and documented due to JuliaLang/julia#11895. Note: this does not compat-ably version the change, but simply points the way to the new API.

Now formally supported and documented due to JuliaLang/julia#11895. Note: this does not compat-ably version the change.
length(I) == sz || throw(BoundsError())
function Base.checkbounds(::Type{Bool}, sz::Int, I::NullableVector{Bool})
anynull(I) && throw(NullException())
length(I) == sz
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the semantics here (beyond just the rename)… but I'm pretty sure that this is actually what you want.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that this is what's wanted.

johnmyleswhite added a commit that referenced this pull request Aug 26, 2015
Update index checkbounds API
@johnmyleswhite johnmyleswhite merged commit 6a90a4a into JuliaStats:master Aug 26, 2015
@johnmyleswhite
Copy link
Member

Thanks, Matt!

@mbauman mbauman deleted the checkbounds branch August 26, 2015 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants