[Pharo-project] Another finalization concern: error handling

Stéphane Ducasse stephane.ducasse at inria.fr
Mon Oct 11 11:20:21 EDT 2010


Arghhhhh

>>> 
> 
> ObjectFinalizer>>finalize
> 	"Finalize the resource associated with the receiver. This message
> should only be sent during the finalization process. There is NO
> garantuee that the resource associated with the receiver hasn't been
> free'd before so take care that you don't run into trouble - this all
> may happen with interrupt priority."
> 	[self value] on: Error do:[:ex| ex return].
> 
> now, replace this implementation with just
> self value
> and you'll see what will happen.
> 
> Such behavior is completely unacceptable in terms of finding the bugs
> & problems in your code.

yes please fix.... arghhhh

Stef




More information about the Pharo-dev mailing list