Skip to content

Commit

Permalink
add NEWS for mutable struct singletons change (#25854)
Browse files Browse the repository at this point in the history
also a small doc clarification

[ci skip]
  • Loading branch information
JeffBezanson committed Feb 2, 2018
1 parent 9f8496c commit 03a56a5
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 03a56a5

Please sign in to comment.