[Issue 436] New: OutOfMemoryException undocumented, misdocumented

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 16 04:43:50 PDT 2006


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 at digitalmars.com
        ReportedBy: chris at 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.


-- 




More information about the Digitalmars-d-bugs mailing list