Skip to content

Commit 448f9c9

Browse files
authored
Merge pull request #521 from JuliaArrays/cjf/deprecate-old-interfaces
Deprecate ImmutableArrays and FixedSizeArrays compatibility interfaces
2 parents c946134 + ddfc728 commit 448f9c9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/FixedSizeArrays.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ etc, using StaticArrays as a backend.
66
The type definitions are not "perfect" matches because the type parameters are
77
different. However, it should cover common method signatures and constructors.
88
"""
9-
module FixedSizeArrays
9+
module FixedSizeArraysWillBeRemoved
1010

1111
using ..StaticArrays
1212

@@ -187,3 +187,6 @@ end
187187
@fixed_vector Point StaticVector
188188

189189
end
190+
191+
Base.@deprecate_binding FixedSizeArrays FixedSizeArraysWillBeRemoved #=
192+
=# false "StaticArrays.FixedSizeArrays is deprecated. Use StaticArrays directly."

src/ImmutableArrays.jl

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module ImmutableArrays
1+
module ImmutableArraysWillBeRemoved
22

33
using ..StaticArrays
44

@@ -34,3 +34,6 @@ export Vector1, Vector2, Vector3, Vector4,
3434
Matrix4x1, Matrix4x2, Matrix4x3, Matrix4x4
3535

3636
end # module
37+
38+
Base.@deprecate_binding ImmutableArrays ImmutableArraysWillBeRemoved #=
39+
=# false "StaticArrays.ImmutableArrays is deprecated. Use StaticArrays directly."

0 commit comments

Comments
 (0)