[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: [bug] class deletion
From: |
Gwenael Casaccio |
Subject: |
[Help-smalltalk] Re: [bug] class deletion |
Date: |
Mon, 05 Oct 2009 13:08:20 +0200 |
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