mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
parent
109dddb649
commit
23f6757be9
1 changed files with 12 additions and 0 deletions
12
changelog/dmd.foreach-array-index-type.dd
Normal file
12
changelog/dmd.foreach-array-index-type.dd
Normal file
|
@ -0,0 +1,12 @@
|
|||
`foreach` on a dynamic array can have an index type smaller than `size_t`
|
||||
|
||||
The array length is known at compile-time for the following cases:
|
||||
|
||||
* The array is a literal
|
||||
* The array is a slice expression whose upper bound is known at
|
||||
compile-time
|
||||
|
||||
For an array `a`, the index type can be any integer type `I` where
|
||||
`a.length <= I.max`.
|
||||
|
||||
Other cases [are not implemented](https://issues.dlang.org/show_bug.cgi?id=24542) yet.
|
Loading…
Add table
Add a link
Reference in a new issue