Berin Loritsch wrote on Wednesday, November 05, 2003 4:11 PM:
> Eric Pugh wrote:
>>
>> I guess I assumed that when I left the while loop, the object would
>> go away, just like if I did this:
>> while(true){
>> EmailManager myEmailManager = new EmailManager();
>> }
>
> Maybe in Merlin/Fortress, but it never really does go away.
> The container has to account for that component, so it is
> tracking the component. In the above example the new
> EmailManager() allows the garbage collector to handle things,
> and the compiler knows enough that the myEmailManager
> variable is never used so the whole content of the loop does
> not have to be compiled at all.
Sure? I would suppose, that an object is created and directly handed over to the GC.
Otherwise the Compiler must have knowledge of the (possibly empty) implementation of
any inherited c'tors.
Regards,
J�rg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]