[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Wrong finalizer in FileDescriptor

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: 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

        <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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]