Skip to content

Commit cb58e21

Browse files
dkorpeldlang-bot
authored andcommitted
Remove confusing 'best practice' of 0 size arrays
Closes #4263
1 parent 05e7f8c commit cb58e21

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

spec/arrays.dd

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ int[3] s;
4141
$(BEST_PRACTICE
4242
$(OL
4343
$(LI Use dynamic arrays for larger arrays.)
44-
$(LI Static arrays with 0 elements are useful as the last member
45-
of a variable length struct, or as the degenerate case of
46-
a template expansion.)
4744
$(LI Because static arrays are passed to functions by value,
4845
a larger array can consume a lot of stack space. Use dynamic arrays
4946
instead.)

0 commit comments

Comments
 (0)