On Mon, 2009-10-05 at 12:44 +0200, Paolo Bonzini wrote:
> > -Status: active
> > +Status: committed
> 
> What's the reason for this?
> 
> -                res = 1 ifTrue: [ self saveImage.
> +                res = 1 ifTrue: [ saved ifTrue: [ self saveImage ] 
> ifFalse: [ self saveImageAs ].
> 
> This behavior is different from about every other Smalltalk, AFAICT. 
> Maybe you wanted this:
> 
> saveImage
>      "ObjectMemory>>#snapshot breaks hard links due to
>       http://bugzilla.kernel.org/show_bug.cgi?id=9138, so we have to
>       check the permission of the directory rather than the file."
>      File image parent isWriteable ifFalse: [ ^self saveImageAs ].
> 
> ?
> 
> Paolo

Yes this is what I've wanted (this was a bad quick fix).

Cheers,
Gwen



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

Reply via email to