www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 436] New: OutOfMemoryException undocumented, misdocumented

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=436

           Summary: OutOfMemoryException undocumented, misdocumented
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: spec
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: chris dprogramming.com


http://www.digitalmars.com/d/phobos/std_gc.html says "it will throw an
OutOfMemory exception" for enable/disable, which should be
OutOfMemoryException, and there's no mention of where to find this.
std.outofmemory appears to be completely undocumented.

http://www.digitalmars.com/d/phobos/std_path.html says "Throws: 
std.OutOfMemory if there is not enough memory" for expandTilde(), which is very
wrong, and probably doesn't even need to be mentioned; any function that
allocates memory can throw it.

I think OutOfMemoryException should be defined in std.gc and std.outofmemory
should have a deprecated alias.


-- 
Oct 16 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=436


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed DMD 0.170


-- 
Oct 18 2006