-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
replace BitArray(shape...) constructors/calls with BitArray(uninitialized, shape...) #24785
Conversation
f00cc51
to
c4d42fa
Compare
Rebased and added the |
…(uninitialized, shape...) etc.
…d, shape...) transition.
…Array constructors.
…zed, shape...) equivalents.
Rebased again, changed to more conservative If CI approves and absent objections or requests for time, I plan to merge these changes this evening PT or later. Best! |
I think this broke some constructors, noticed in JuliaArrays/OffsetArrays.jl#34 v0.6: julia> BitArray(1:2)
2-element BitArray{1}:
true
true master: julia> BitArray(uninitialized, 1:2)
ERROR: MethodError: no method matching BitArray(::Uninitialized, ::UnitRange{Int64})
Closest candidates are:
BitArray(::Uninitialized, ::Integer...) at bitarray.jl:57
BitArray(::Uninitialized, ::Tuple{Vararg{Int64,N}}) where N at bitarray.jl:59
BitArray(::Any) at bitarray.jl:556 |
Yes, OffsetArrays will require definitions like those added to |
This pull request deprecates uninitialized-
BitArray
constructors of the formBitArray[{N}](shape...)
in favor ofBitArray[{N}](uninitialized, shape...)
equivalents. For background, please see #24595. Best!