🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #4481

Re: open files vs. save/restore

#4481
From: Ed Taft
Date: Thu, 17 Jan 1991 00:17
13 lines
1244 bytes
In article <48.UUL1.3#5127@aladdin.com> ghost@aladdin.com (L. Peter Deutsch) writes:
>The PostScript Language Reference Manual clearly states that if a
>file is opened after a save, the corresponding restore will close the
>file.  What about the converse?  If an open file is closed after a
>save, does the restore reopen (and reposition??) the file?

No. Side-effects of file operators (writing, repositioning, closing, etc.)
are never undone by restore. The automatic closing of files by restore
(and by garbage collection in Level 2) is merely a convenience. It ensures
that the underlying file is not kept open artificially when it is no longer
accessible at the PostScript language level.

Ed Taft      taft@adobe.com      ...decwrl!adobe!taft
Technical Details
Message-ID: <10022@adobe.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!decwrl!adobe!taft
References: <48.UUL1.3#5127@aladdin.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!decwrl!adobe!taft
From: taft@adobe.com (Ed Taft)
Newsgroups: comp.lang.postscript
Subject: Re: open files vs. save/restore
Message-ID: <10022@adobe.UUCP>
Date: 17 Jan 91 00:17:30 GMT
References: <48.UUL1.3#5127@aladdin.com>
Sender: news@adobe.COM
Reply-To: taft@adobe.COM (Ed Taft)
Organization: Adobe Systems Incorporated, Mountain View
Lines: 13