[Pharo-project] snapshot methods
I am always confused about the snapshot behavior. Yes, it returns true when we are in the new image, but this is far from obvious :/. How about a more explicit method for snapshotting and continue with different code in the new / old image: self stuffInCurrentImage. Smalltalk snapshotIfNew: [ self stuffInNewImage ] IfCurrent: [ self stuffInCurrentImage ] self stuffInCurrentAndNewImage.
On 5 December 2012 00:48, Camillo Bruni <camillobruni@gmail.com> wrote:
I am always confused about the snapshot behavior. Yes, it returns true when we are in the new image, but this is far from obvious :/.
How about a more explicit method for snapshotting and continue with different code in the new / old image:
self stuffInCurrentImage.
Smalltalk snapshotIfNew: [ self stuffInNewImage ] IfCurrent: [ self stuffInCurrentImage ]
self stuffInCurrentAndNewImage.
+1 just s/image/session/g :) -- Best regards, Igor Stasenko.
On 2012-12-04, at 21:08, Igor Stasenko <siguctua@gmail.com> wrote:
On 5 December 2012 00:48, Camillo Bruni <camillobruni@gmail.com> wrote:
I am always confused about the snapshot behavior. Yes, it returns true when we are in the new image, but this is far from obvious :/.
How about a more explicit method for snapshotting and continue with different code in the new / old image:
self stuffInCurrentImage.
Smalltalk snapshotIfNew: [ self stuffInNewImage ] IfCurrent: [ self stuffInCurrentImage ]
self stuffInCurrentAndNewImage.
+1 just s/image/session/g
yes makes more sense ;), ok I'll add it then :)
participants (2)
-
Camillo Bruni -
Igor Stasenko