Manual Memory Management Example for dlang.org Docs (Code Review)

Mike none at none.com
Tue Feb 25 18:23:45 PST 2014


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/ip76fa$2o7k$3@digitalmars.com) 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


More information about the Digitalmars-d mailing list