[squeak-dev] The Trunk: System-bf.446.mcz

Levente Uzonyi leves at elte.hu
Tue Jul 12 09:02:09 UTC 2011


On Tue, 12 Jul 2011, Bert Freudenberg wrote:

> On 11.07.2011, at 22:08, Levente Uzonyi wrote:
>
>> On Mon, 11 Jul 2011, commits at source.squeak.org wrote:
>>
>>> Bert Freudenberg uploaded a new version of System to project The Trunk:
>>> http://source.squeak.org/trunk/System-bf.446.mcz
>>>
>>
>> snip
>>
>>> Item was added:
>>> + ----- Method: SmalltalkImage>>okayToSave (in category 'snapshot and quit') -----
>>> + okayToSave
>>> + 	| wasCog isCog |
>>> + 	[wasCog := self imageFormatVersionFromFile allMask: 1]
>>> + 		on: Error do: [:ignore | "probably save-as to non-existing file" ^ true ].
>>
>> You can also omit the argument.
>>
>>> + 	isCog := Smalltalk isRunningCog.
>>> + 	^wasCog = isCog or: [
>>> + 		self confirm: 'Images saved under Cog cannot be opened on an interpreter again!!
>>> + Really save?']
>>
>> It's not entirely true.
>
> Right. It should say "possibly".
>
>> The latest release of Unix and Mac interpreter VMs can read Cog images.
>
> The bleeding-edge Mac VMs do not run on older systems.  4.2.5 is the latest stable Mac VM, but it cannot read Cog images.

Right, the latest stable Cocoa interpreter (5.7.4.1) should be able to 
open Cog images. I'm not sure if there will be a 4.2.6 Carbon VM...

>
> The VMs officially packaged in various Linux distros cannot read Cog images either.

The latest stable release is 4.4.7.2357, which has this feature, so the 
Linux packages should be updated somehow.


Levente

>
>> Also if there were a new Windows VM released using the current VMMaker, it would also be able to open images saved with Cog. The proof is the VM that I built a few month ago (http://leves.web.elte.hu/squeak/SqueakVM-Win32-4.4.9-2358-non-official-bin.zip ), because I had to read old ImageSegments into a Cog image which were not readable by Cog VMs.
>
> Sounds good.
>
> - Bert -
>
>
>
>



More information about the Squeak-dev mailing list