As I study D, I am running across quite a few unmaintained examples in dlang.org's documentation. Rather than leaving them for the next guy to step in, I'm (one-by-one) submitting pull request to fix them.

I need an good manual memory management example, but the one at http://dlang.org/memory.html#newdelete uses the deprecated allocators.

Daniel Gibson posted an example here (http://forum.dlang.org/post/[email protected]) back in 2011.

I've modified that example and posted a new one here (http://dpaste.dzfl.pl/f4b09b9e6c46) using destroy.

I'm quite new to D, so I'm asking the community to please review this example so I can submit a pull and update the docs.

Thanks,
Mike

Reply via email to