[Mono-list] Minor bug

Michal Moskal malekith@pld-linux.org
Sun, 27 Apr 2003 01:55:41 +0200

On Sat, Apr 26, 2003 at 07:42:26PM +0000, Pablo Baena wrote:
> I will fill a bug report but I have another question. Let's say I put
> the brackets and the code compiles. One object's lifetime is only within
> its scope (in this case the said brackets). But, what if this class I
> created here has a delegate called by an event on another permanent
> class beyond this scope?? The GC knows this and won't kill my newly
> created object until the caller class is finalized?

Sure. That's what's GC for ;-) Beside scope of 'a' (which is pointer to
Clazz in C's sense) is this block only, actual Clazz instance is on

: Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h