Skip to content

Commit

Permalink
add NEWS for mutable struct singletons change (#25854) (#25862)
Browse files Browse the repository at this point in the history
also a small doc clarification
  • Loading branch information
JeffBezanson authored and ararslan committed Feb 2, 2018
1 parent 0702f7a commit 18c14e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ Language changes
* The syntax `1.+2` is deprecated, since it is ambiguous: it could mean either
`1 .+ 2` (the current meaning) or `1. + 2` ([#19089]).

* Mutable structs with no fields are no longer singletons; it is now possible to make
multiple instances of them that can be distinguished by `===` ([#25854]).
Zero-size immutable structs are still singletons.

* In string and character literals, backslash `\` may no longer
precede unrecognized escape characters ([#22800]).

Expand Down
2 changes: 1 addition & 1 deletion doc/src/manual/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ to point to different objects.
Where required, mutable composite objects can be declared with the keyword `mutable struct`, to be
discussed in the next section.

Composite types with no fields are singletons; there can be only one instance of such types:
Immutable composite types with no fields are singletons; there can be only one instance of such types:

```jldoctest
julia> struct NoFields
Expand Down

0 comments on commit 18c14e6

Please sign in to comment.