Call core.exception.onOutOfMemory. Not critical in this case since the GC still has memory at hand, but...

On Feb 15, 2013, at 2:43 PM, monarch dodra <notifications@github.com> wrote:

> In std/stdio.d:
> 
> > @@ -291,7 +291,8 @@ struct File
> >      private this(FILE* handle, string name, uint refs = 1, bool isPipe = false)
> >      {
> >          assert(!_p);
> > -        _p = cast(Impl*) enforce(malloc(Impl.sizeof), "Out of memory");
> > +        _p = cast(Impl*) malloc(Impl.sizeof);
> > +        if (!_p) throw new OutOfMemoryError();
> Good point. Done.
> 
> —
> Reply to this email directly or view it on GitHub.
>