Next in Review Queue: The New std.path
Lars T. Kyllingstad
public at kyllingen.NOSPAMnet
Sun Jul 17 05:18:48 PDT 2011
On Sat, 16 Jul 2011 14:25:36 -0700, Jonathan M Davis wrote:
>> > There's no such thing as an OutOfMemoryException. It's an
>> > OutOfMemoryError. And being an error, I don't think that there's any
>> > need to mention it in the documentation. _Anything_ which allocates
>> > memory could cause the application to run out of memory, and being an
>> > Error, you're really not supposed to catch it, so there's no real
>> > point in mentioning it in the documentation.
>>
>> I'll fix the documentation.
>
> Actually, core.memory needs to be fixed on that count (that's probably
> where you got the idea about OutOfMemoryException). I should probably
> create a pull request to fix that.
That function (expandTilde) and its documentation is from the current
std.path, dating back to D1. I haven't made any significant changes to
it. What it does is call druntime's onOutOfMemoryError() handler, which
I guess throws an OutOfMemoryException in D1(?)
-Lars
More information about the Digitalmars-d
mailing list