[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: [bug] class deletion
From: |
Paolo Bonzini |
Subject: |
[Help-smalltalk] Re: [bug] class deletion |
Date: |
Mon, 05 Oct 2009 12:44:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3 |
-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