Skip to content

Commit

Permalink
Use ArrayInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Nov 13, 2019
1 parent c5ba241 commit f317bbd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ authors = ["Takafumi Arakaki <aka.tkf@gmail.com>"]
version = "0.3.5-DEV"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
Future = "9fa8497b-333b-5362-9e8d-4d0656e87820"
Expand Down
4 changes: 1 addition & 3 deletions src/BangBang.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export @!,
singletonof,
splice!!

using ArrayInterface: ArrayInterface
using Base.Broadcast: materialize!
using Compat: hasproperty
using InitialValues
Expand Down Expand Up @@ -52,9 +53,6 @@ include("setfield.jl")
using .SetfieldImpl: @set!!, prefermutation

function __init__()
@require StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" begin
include("staticarrays.jl")
end
@require StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a" begin
include("structarrays.jl")
end
Expand Down
1 change: 1 addition & 0 deletions src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const MaybeMutableContainer = Union{
"""
ismutable(x) = ismutable(typeof(x))
ismutable(::Type) = false
ismutable(::Type{T}) where {T<:AbstractArray} = ArrayInterface.ismutable(T)
ismutable(::Type{<:ImmutableContainer}) = false
ismutable(::Type{<:MaybeMutableContainer}) = true
ismutable(::Type{<:AbstractString}) = false
Expand Down
2 changes: 0 additions & 2 deletions src/staticarrays.jl

This file was deleted.

0 comments on commit f317bbd

Please sign in to comment.