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?

_______________________________________________
help-smalltalk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to