|
From: | Holger Hans Peter Freyther |
Subject: | [Help-smalltalk] Wrong finalizer in FileDescriptor |
Date: | Thu, 28 Apr 2011 23:02:10 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110419 Lightning/1.0b2 Thunderbird/3.1.9 |
Hi Paolo, 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?
[Prev in Thread] | Current Thread | [Next in Thread] |