mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
Add note about CTFE/pure issue
This commit is contained in:
parent
3e97991dc7
commit
b16a3ed609
1 changed files with 2 additions and 0 deletions
|
@ -405,6 +405,8 @@ private auto arrayAllocImpl(bool minimallyInitialized, T, I...)(I sizes) nothrow
|
|||
{
|
||||
try
|
||||
{
|
||||
//Issue: if E has an impure postblit, then all of arrayAllocImpl
|
||||
//Will be impure, even during non CTFE.
|
||||
foreach (i; 0 .. size)
|
||||
ret ~= E.init;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue