ghost@aladdin.com (L. Peter Deutsch) (01/15/91)
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? L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306 ghost@aladdin.com ; {uunet,sun,decwrl}!parcplace!aladdin!ghost ; (415)329-0264 "Implementation is the sincerest form of flattery."
taft@adobe.com (Ed Taft) (01/17/91)
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