Mercurial > projects > ldc
view lphobos/std/outofmemory.d @ 524:ca2dfe98036c
Binary ops had the wrong result type for real op imaginary.
Fixes:
run/creal_03
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 17 Aug 2008 12:21:53 +0200 |
parents | ccca1c13e13a |
children | 88e23f8c2354 |
line wrap: on
line source
/** * Macros: * WIKI=Phobos/StdOutOfMemory * Copyright: * Placed into public domain. * www.digitalmars.com */ module std.outofmemory; /****** * This exception is thrown when out of memory errors happen. */ class OutOfMemoryException : Exception { static char[] s = "Out of memory"; /** * Default constructor */ this() { super(s); } char[] toString() { return s; } } extern (C) void _d_OutOfMemory() { assert(0); /*throw cast(OutOfMemoryException) cast(void *) OutOfMemoryException.classinfo.init;*/ } static this() { }