It's an unknown fact that most GNU utils written in C never free up the memory they allocate, which usually results in memory leaks.
You may wonder, why? It's because C lacks RAII.
Same goes for D; although D does have RAII, its Garbage Collector creates memory leaks by allocating and never freeing ridicolously large memory chunks.
This code allocates 41,688 bytes, and never frees it:
import tango.io.Stdout;
>>1 tango
Please, use D2. You may wonder, why?
Because GNU utils is made of crap. because C lacks RAII.
It's so hard to put an object_destroy(); at the end of the scope. Yet D & C folks claim to be better than C++...
Because they are.
This code allocates [seemingly absurd chunk of memory]
I wonder why... import Oh right.
Imagine the memory chunk allocated by the GC for a ``bigger'' application.
Why the faggot qu--oh I see, ``bigger'', eh? ;) As in, no more than about 40KB bigger? I forget how GC works.
Name:
Anonymous2010-12-15 18:04
It's all better than Java...what kind of faggot codes a game in Java? RUNS LIKE SHIT
>>3 It's so hard to put an object_destroy(); at the end of the scope.
You obviously don't understand RAII.
>>4 Why the faggot qu--oh I see, ``bigger'', eh? ;) As in, no more than about 40KB bigger? I forget how GC works.
Because there is no such thing as 'big, noteworthy D application'... well, except the DMD compiler itself. Yes, D is a sad clownlanguage like that.