[squeak-dev] Files | #startUp and #shutDown in FileDirectory
David T. Lewis
lewis at mail.msen.com
Thu May 28 13:26:01 UTC 2020
On Wed, May 27, 2020 at 08:58:48AM +0200, Marcel Taeumel wrote:
> Hi, there. :-)
>
> Why do we reset file-related stuff (e.g. source file handles, default directory class)?? on every snapshot? Shouldn't there be a check for "resuming" (or "quitting") in FileDirectory class >> #startUp(:) (and #shutDown(:))?
>
> ...or am I missing something? Tim (tpr)! You started it in 2003. Please, explain.??:-D
>
> Maybe ... we don't ever want to store dangling source-file handles in the image?
>
Yes I think that is the reason. The image snapshot should contain little or
no platform-specific stuff, and there is no point in allowing it to contain
obsolete file handles that would need to be detected by primitive fallback
code when the snapshot is next loaded.
After all, the image that you snapshot today may next be opened by someone
with a Risc OS computer :-)
Dave
More information about the Squeak-dev
mailing list
|