Add note about CTFE/pure issue

This commit is contained in:
monarch dodra 2013-10-29 11:01:07 +01:00 committed by monarchdodra
parent 3e97991dc7
commit b16a3ed609

View file

@ -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;
}