I am not sure that this is a correct answer. 1600 bytes is just 100x2x8 bytes. Since delegates are fat (double) pointers this is probably just the memory occupied by dlg variables themselves, not the memory to which they point. Indeed adding an extra z variable in my code to the g() function and using it in writeln does not change the output: it is still 1600 bytes.
- delegates and heap usage Franciszek Czekala
- Re: delegates and heap usage Simen kjaeraas
- Re: delegates and heap usage Franciszek Czekala
- Re: delegates and heap usage Simen kjaeraas
