From 6cde22ecb7edc939aeec58a5ef79524c99a331b7 Mon Sep 17 00:00:00 2001 From: Dennis Date: Wed, 23 Jul 2025 13:02:41 +0200 Subject: [PATCH] Remove confusing 'best practice' of 0 size arrays Closes #4263 --- spec/arrays.dd | 3 --- 1 file changed, 3 deletions(-) diff --git a/spec/arrays.dd b/spec/arrays.dd index 2e041a209a..e3e1ccc779 100644 --- a/spec/arrays.dd +++ b/spec/arrays.dd @@ -41,9 +41,6 @@ int[3] s; $(BEST_PRACTICE $(OL $(LI Use dynamic arrays for larger arrays.) - $(LI Static arrays with 0 elements are useful as the last member - of a variable length struct, or as the degenerate case of - a template expansion.) $(LI Because static arrays are passed to functions by value, a larger array can consume a lot of stack space. Use dynamic arrays instead.)