On 02.08.2014 15:33, Ben Coman wrote:
I don't know much about finalization of Weak constructs, but maybe an
alternative.  I assume you have something like..
startProcess
    [        "do stuff"    ] fork.

so how about...
startProcess
    [ [
        "do stuff"
         myProcess = nil.
    ] whileFalse ] fork.

cheers -ben


That's a clever way to do it ... only it doesn't work :-(

My current understanding is that "self" in the block refers to the original instance where "myProcess" is still assigned. "self" in #finalize is the "executor" object which is (by default) a #shallowCopy of the object where ivar are nil.

I currently have the feeling I'm missing something. Finalization shouldn't be that hard ... or may I'm simply spoiled comming from a Dolphin Smalltalk background :-)

Thanks for your help,

Udo



Reply via email to