Skip to content

Commit

Permalink
Add note about CTFE/pure issue
Browse files Browse the repository at this point in the history
  • Loading branch information
monarchdodra committed Feb 13, 2014
1 parent 3e97991 commit b16a3ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions std/array.d
Expand Up @@ -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;
}
Expand Down

0 comments on commit b16a3ed

Please sign in to comment.