What are the worst parts of D?

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu Oct 9 23:54:29 PDT 2014


On 09/10/14 18:41, Andrei Alexandrescu wrote:

> With structured outputs there are a lot more issues to address: one can
> think of a JSONObject as an output range with put() but that's only
> moving the real issues around. How would the JSONObject allocate memory
> internally, give it out to its own users, and dispose of it timely, all
> in good safety?

The XML DOM module in Tango uses, if I recall correctly, a free list 
internally for the nodes. It will reuse the nodes, if you want to keep 
some information you need to copy it yourself.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list