Skip to content

Commit 1845397

Browse files
authored
Document deprecation of 'is' for static arrays (#3710)
This was deprecated in DMD 2.072.0, but the corresponding spec PR was never merged. See dlang/dmd#6089
1 parent 3c33899 commit 1845397

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/expression.dd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ $(GNAME IdentityExpression):
688688
---
689689
)
690690

691+
$(DDOC_DEPRECATED Use of `is` to compare static arrays by address and
692+
length is deprecated. To do so, use the slice operator and compare slices
693+
of the arrays instead; for example, `a1[] is a2[]`.)
694+
691695
$(P For other operand types, identity is defined as being the same
692696
as equality.
693697
)

0 commit comments

Comments
 (0)