-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


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

Reply via email to