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

Reply via email to