1 Apr
2006
1 Apr
'06
6:22 a.m.
Nick Coghlan wrote:
Generators are even more special, in that they only require finalisation in the first place if they're stopped on a yield statement inside a try-finally block.
I find it rather worrying that there could be a few rare cases in which my generators cause memory leaks, through no fault of my own and without my being able to do anything about it. Will there be a coding practice one can follow to ensure that this doesn't happen? -- Greg