File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ Language changes
60
60
* The syntax ` 1.+2 ` is deprecated, since it is ambiguous: it could mean either
61
61
` 1 .+ 2 ` (the current meaning) or ` 1. + 2 ` ([ #19089 ] ).
62
62
63
+ * Mutable structs with no fields are no longer singletons; it is now possible to make
64
+ multuple instances of them that can be distinguished by ` === ` ([ #25854 ] ).
65
+ Zero-size immutable structs are still singletons.
66
+
63
67
* In string and character literals, backslash ` \ ` may no longer
64
68
precede unrecognized escape characters ([ #22800 ] ).
65
69
Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ to point to different objects.
387
387
Where required, mutable composite objects can be declared with the keyword ` mutable struct ` , to be
388
388
discussed in the next section.
389
389
390
- Composite types with no fields are singletons; there can be only one instance of such types:
390
+ Immutable composite types with no fields are singletons; there can be only one instance of such types:
391
391
392
392
``` jldoctest
393
393
julia> struct NoFields
You can’t perform that action at this time.
0 commit comments