On Thu, 30 Dec 2010, Igor Stasenko wrote:

On 30 December 2010 23:11, Sean P. DeNigris <[email protected]> wrote:

As I port code from Sophie, I keep running into
WeakArray>>isFinalizationSupported calls.

This is strange..
this code was introduced only since Pharo 1.2
and Squeak 4.2 images jut couple of months ago.
And of course, Pharo 1.1 images,  where you porting know nothing about
this method.

You can patch Pharo 1.1. by putting
WeakArray>>isFinalizationSupported
^ false
in this method.

But i don't understand what you doing... how it could happen that
Sophie knows about (and using) this recently introduced code?

Or perhaps you trying to port Collections-Weak? which i would not
recommend to do,
because it is a part of Kernel.

You are mixing the methods. #isFinalizationSupported used to answer what it's name suggests: "does the VM support any form of finalization?". What you're thinking about is WeakFinalizationList class >> #hasNewFinalization (or so) which is unrelated. The method was removed during a "cleanup". And as you know, backwards compatibility is not a priority for Pharo.


Levente




Why was this method removed from Pharo?  I want to make sure I understand
what I'm doing when I remove these calls.

Thanks.
Sean
--
View this message in context: 
http://forum.world.st/WeakArray-isFinalizationSupported-tp3168849p3168849.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.





--
Best regards,
Igor Stasenko AKA sig.

Reply via email to