associative array re-use
BCS
ao at pathlink.com
Wed Nov 26 20:02:12 PST 2008
Reply to ViktorKrescvohn,
> i have a function that re-use same associative array over and over
> within a loop. and i release the array with 'null' afther each loop,
> will that be a problem of meamory leak after few thousands loop.
> sample function as below:
>
> void[] [char[]] dict;
> void[] [char[]] temp;
> function test()
> {
> for (..) {
> for (...) {
> temp[name]=value;
> }
> dict~=temp;
> temp=null;
> }
> ..do something with dict...
> }
> thank you for you help
>
No, AA's are built in the GC heap so it can't leak.
More information about the Digitalmars-d-learn
mailing list