delegates and heap usage

Franciszek Czekala home at valentimex.com
Wed Dec 1 05:55:06 PST 2010


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.


More information about the Digitalmars-d mailing list