Conspiracy Theory #1
Travis Boucher
boucher.travis at gmail.com
Thu Nov 19 22:14:29 PST 2009
dsimcha wrote:
> == Quote from Travis Boucher (boucher.travis at gmail.com)'s article
>> Sean Kelly wrote:
>> Its harder
>> to create a memory leak in D then it is to prevent one in C.
>
> void doStuff() {
> uint[] foo = new uint[100_000_000];
> }
>
> void main() {
> while(true) {
> doStuff();
> }
> }
>
Hmm, that seems like that should be an implementation bug. Shouldn't
foo be marked for GC once it scope? (I have never used new on a
primitive type, so I don't know)
More information about the Digitalmars-d
mailing list