[Pharo-project] how to know if an image is resuming or not

Stéphane Ducasse stephane.ducasse at inria.fr
Tue Nov 9 11:48:06 CET 2010


Yes I was reading that method yesterday and I went to sleep
The embedded flag  got me distracted. I will retry now. 
Thanks


> snapshot: save andQuit: quit embedded: embeddedFlag
> 
> answers the resuming flag.
> 
> So, you can use it like:
> 
> | resumedInFirstSnapshot |
> resumedInFirstSnapshot := false.
> 
> "first save"
> (Smalltalk snapshot: save andQuit: false) ifTrue: [ ... "resuming here
> " resumedInFirstSnapshot  := true ]
> "second save"
> (Smalltalk snapshot: save andQuit: false) ifTrue: [ ... "resuming here
> " resumedInFirstSnapshot ifFalse: [ ... ] ]
> 
> 
> 
>> Stef
>> 
>> 
>> 
> 
> 
> 
> -- 
> Best regards,
> Igor Stasenko AKA sig.
> 





More information about the Pharo-project mailing list