[squeak-dev] The Trunk: System-dtl.452.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Sep 10 19:11:08 UTC 2011

David T. Lewis uploaded a new version of System to project The Trunk:

==================== Summary ====================

Name: System-dtl.452
Author: dtl
Time: 10 September 2011, 3:10:33.67 pm
UUID: db149447-804f-47c2-b03c-391410c4babf
Ancestors: System-ul.451

Do not warn about saving images under Cog unless actually running under Cog. Saving a Cog image with the interpreter VM is safe.

=============== Diff against System-ul.451 ===============

Item was changed:
  ----- Method: SmalltalkImage>>okayToSave (in category 'snapshot and quit') -----
  	| wasCog isCog |
  	[wasCog := self imageFormatVersionFromFile allMask: 1]
  		on: Error do: [:ignore | "probably save-as to non-existing file" ^ true ].
  	isCog := Smalltalk isRunningCog.
+ 	^(isCog not or: [wasCog]) or: [
- 	^wasCog = isCog or: [
  		self confirm: 'Images saved under Cog cannot be opened on an interpreter again!!
  Really save?']

More information about the Squeak-dev mailing list