|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Wrong finalizer in FileDescriptor |
Date: | Fri, 29 Apr 2011 08:40:06 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.9 |
On 04/28/2011 11:02 PM, Holger Hans Peter Freyther wrote:
FileDescr>>#finalize [ "Close the file if it is still open by the time the object becomes garbage." <category: 'basic'> AllOpenFiles remove: self ifAbsent: []. self isOpen ifFalse: [self close] ] This means that if the file is not open... close will be called. Is that your intention?
Obviously not, thanks. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |