Skip to content
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

make FixedSizeArray immutable #2

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Conversation

oscardssmith
Copy link
Collaborator

No description provided.

@@ -2,7 +2,7 @@ module FixedSizeArrays

export FixedSizeArray, FixedSizeVector, FixedSizeMatrix

mutable struct FixedSizeArray{T,N} <: DenseArray{T,N}
struct FixedSizeArray{T,N} <: DenseArray{T,N}
mem::Memory{T}
const size::NTuple{N,Int}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldn't be const, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

correct

@giordano giordano merged commit f8b71ff into JuliaArrays:main Feb 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants