List of Phobos functions that allocate memory?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Feb 6 10:20:56 PST 2014


On 2/6/14, 10:05 AM, Johannes Pfau wrote:
> Am Thu, 06 Feb 2014 16:32:08 +0000
> schrieb "Dicebot" <public at dicebot.lv>:
>
>> On Thursday, 6 February 2014 at 16:28:25 UTC, Andrei Alexandrescu
>> wrote:
>>> Would anyone be willing to take on the ingrate task of creating
>>> a comprehensive list with all Phobos functions (and more
>>> generally artifacts) that allocate memory? That would help a
>>> lot with focusing the discussion.
>>>
>>> Andrei
>>
>> Merging https://github.com/D-Programming-Language/dmd/pull/1886
>> and running phobos unit tests should make it relatively simple,
>> at least for a first pass.
>
> That's only for implicit allocations though. And please, don't merge
> yet, it'll get another rewrite this weekend ;-)

Please close if you plan to rewrite.

> One interesting point is that module that were written with avoiding
> allocations in mind usually still allocate when throwing exceptions.

Good point, we need to address that as well.


Andrei




More information about the Digitalmars-d mailing list