Skip to content

Commit

Permalink
Add a comment about storing mutable objects (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkamins authored Feb 1, 2021
1 parent 7cbaacb commit ff28ff2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/PooledArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ The `compress` argument controls whether the default size of 32 bits is used (`U
unsigned, `Int32` for signed) or if smaller integer types are chosen when they can be used.
If `array` is not a `PooledArray` then the order of elements in `refpool` in the resulting
`PooledArray` is the order of first appereance of elements in `array`.
Note that if you hold mutable objects in `PooledArray` it is not allowed to modify them
after they are stored in it.
"""
PooledArray

Expand Down

0 comments on commit ff28ff2

Please sign in to comment.