Does the 'with' statement affect object lifetime?
Ali Çehreli
acehreli at yahoo.com
Tue Jun 19 12:23:55 PDT 2012
On 06/19/2012 10:56 AM, Alex Rønne Petersen wrote:
> BTW, the reason the class reference is alive is because it's on the
> stack. Regardless of whether you're using with, it wouldn't be collected
> by the GC until the current stack frame exits.
Ah... Good point.
Here is the bug report:
http://d.puremagic.com/issues/show_bug.cgi?id=8269
Ali
More information about the Digitalmars-d-learn
mailing list