Bug 436 – OutOfMemoryException undocumented, misdocumented

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2006-10-16T06:43:00Z
Last change time
2015-06-09T05:15:20Z
Keywords
spec
Assigned to
bugzilla
Creator
chris

Comments

Comment #0 by chris — 2006-10-16T06:43:49Z
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.
Comment #1 by bugzilla — 2006-10-18T13:31:21Z
Fixed DMD 0.170