[Vm-dev] VM Maker: VMMaker-oscog-dtl.59.mcz

Levente Uzonyi leves at elte.hu
Mon Apr 18 10:14:25 UTC 2011


On Mon, 18 Apr 2011, Tobias Pape wrote:

>
>
> Am 2011-04-18 um 10:56 schrieb Bert Freudenberg:
>
>>
>> On 18.04.2011, at 07:23, squeak-dev-noreply at lists.squeakfoundation.org wrote:
>>
>>> Add primitiveImageFormatVersion, an optional named primitive answering the image format number of the current image. This is the value stored in the first word of an image file header when the image is saved, and possibly modified on image load if the VM adds or removes capabilities for the running image. This primitive was added to VMMaker trunk in VMMaker-dtl.169. Rationale: supports float word order handing for image segments, reference http://lists.squeakfoundation.org/pipermail/vm-dev/2011-April/007712.html
>>
>> Is there a way to detect if an image will be saved in a different format than it was loaded?
>>
>> In some images I want to avoid saving them accidentally as a Cog image. I have been doing this by adding a preference "warnAboutSavingAsCog" and checking the VM version string for "cog". With this new primitive I could more reliably detect Cog, but I guess no information about the loaded image is retained?
>
> And: wasn't there a plan to make
> Cog-saved images loadable in non-cogs?

The last official unix VM can do that and probably the 5.7.4 mac VM can do 
it too, but there's no official windows VM with this feature. Also this 
doesn't help much if your users have an older VM installed.


Levente

>
> So Long,
> 	-Tobias


More information about the Vm-dev mailing list