[feature] ObjectMemory class >> snapshot: should return an indicator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[feature] ObjectMemory class >> snapshot: should return an indicator

Tony Garnock-Jones-4
Issue status update for
http://smalltalk.gnu.org/node/157
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/157

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     feature requests
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  tonyg
 Updated by:   tonyg
 Status:       active

ObjectMemory class >> snapshot: does not provide any way to determine
whether, at the return from #snapshot:, we are running in

1. the parent, just after the save, or
2. the saved image, just after the load

A good solution to this would be to return some indicator of which
image-instance we're running in from #snapshot:.

Given such an indicator, we could build a #snapshot:andQuit: message, a
la Squeak, which would provide a convenient way of saving a snapshot and
quitting, without having to jump through hoops on resume to determine
which actions to take next.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [feature] ObjectMemory class >> snapshot: should return an indicator

Tony Garnock-Jones-4
Issue status update for
http://smalltalk.gnu.org/project/issue/157
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/157

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     feature requests
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  tonyg
 Updated by:   tonyg
 Status:       active
 Attachment:   http://smalltalk.gnu.org/files/issues/issue-157.patch (978 bytes)

Patch to make the #snapshot: primitive return false to the saving
instance, and true when we're resuming from a saved image.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: [feature] ObjectMemory class >> snapshot: should return an indicator

Paolo Bonzini-3
In reply to this post by Tony Garnock-Jones-4
Issue status update for
http://smalltalk.gnu.org/project/issue/157
Post a follow up:
http://smalltalk.gnu.org/project/comments/add/157

 Project:      GNU Smalltalk
 Version:      <none>
 Component:    Base classes
 Category:     feature requests
 Priority:     normal
 Assigned to:  Unassigned
 Reported by:  tonyg
 Updated by:   bonzinip
-Status:       active
+Status:       fixed

committed to master with some coding standards fixes.




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk