diff lphobos/std/outofmemory.d @ 662:88e23f8c2354

Applied downs' latest Phobos patch
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 06 Oct 2008 21:40:33 +0200
parents ccca1c13e13a
children
line wrap: on
line diff
--- a/lphobos/std/outofmemory.d	Mon Oct 06 21:27:29 2008 +0200
+++ b/lphobos/std/outofmemory.d	Mon Oct 06 21:40:33 2008 +0200
@@ -33,10 +33,11 @@
 
 extern (C) void _d_OutOfMemory()
 {
-    assert(0);
-    /*throw cast(OutOfMemoryException)
+    printf("Out of memory!\n");
+    *(cast(int*) 0) = 0;
+    throw cast(OutOfMemoryException)
 	  cast(void *)
-	  OutOfMemoryException.classinfo.init;*/
+	  OutOfMemoryException.classinfo.init;
 }
 
 static this()